]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/leaflet.share.js
Match the other sidebar better
[rails.git] / app / assets / javascripts / leaflet.share.js
index 664aebaa5fb19ad47aa08e2bbc7f11f864246faf..a5e93a13946973622380985f82e6c58d5ca69b91 100644 (file)
@@ -16,22 +16,23 @@ L.OSM.share = function (options) {
     var $ui = $('<div>')
       .attr('class', 'share-ui');
 
-    $('<section>')
+    $('<header>')
+      .attr('class', 'sidebar_heading')
       .appendTo($ui)
       .append(
-          $('<a>')
-            .html('&raquo;')
-            .attr('class', 'close-button')
-            .attr('href', '#')
-            .bind('click', toggle))
+        $('<a>')
+          .text(I18n.t('javascripts.close'))
+          .attr('class', 'sidebar_close')
+          .attr('href', '#')
+          .bind('click', toggle))
       .append(
-      $('<h2>')
-        .text(I18n.t('javascripts.share.title')));
+        $('<h4>')
+          .text(I18n.t('javascripts.share.title')));
 
-    var $share_link = $('<section></section>')
+    var $share_link = $('<section>')
       .appendTo($ui);
 
-    var $title = $('<h3></h3>')
+    var $title = $('<h4>')
       .text(I18n.t('javascripts.share.link'))
       .appendTo($share_link);