]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/leaflet.share.js
Reuse styles for map-ui panel
[rails.git] / app / assets / javascripts / leaflet.share.js
index 1434743d0e719c82d492c2e34b750d7f67a23015..7efe12e0cb5feb4c785feed14626d0a89421a7c7 100644 (file)
@@ -16,11 +16,13 @@ L.OSM.share = function (options) {
     var $ui = $('<div>')
       .attr('class', 'share-ui');
 
-    $('<h2>')
-      .text(I18n.t('javascripts.share.title'))
-      .appendTo($ui);
+    $('<section>')
+      .appendTo($ui)
+      .append(
+      $('<h2>')
+        .text(I18n.t('javascripts.share.title')));
 
-    var $share_link = $('<div></div>')
+    var $share_link = $('<section></section>')
       .appendTo($ui);
 
     var $title = $('<h3></h3>')