]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/leaflet.key.js
Update hash on P2 and iD edit pages and throttle
[rails.git] / app / assets / javascripts / leaflet.key.js
index 5aae3d1c25c1efe53b03793ed78abc8a3d561cab..c5124e39d6cf139e4e5b1115e2c691fed532303d 100644 (file)
@@ -14,21 +14,23 @@ L.OSM.key = function (options) {
       .appendTo($container);
 
     var $ui = $('<div>')
       .appendTo($container);
 
     var $ui = $('<div>')
-      .attr('class', 'layers-ui');
+      .attr('class', 'key-ui');
 
 
-    $('<section>')
+    $('<div>')
+      .attr('class', 'sidebar_heading')
       .appendTo($ui)
       .append(
       .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(
       .append(
-      $('<h2>')
-        .text(I18n.t('javascripts.key.title')));
+        $('<h4>')
+          .text(I18n.t('javascripts.key.title')));
 
 
-    var $section = $('<section>')
+    var $section = $('<div>')
+      .attr('class', 'section')
       .appendTo($ui);
 
     options.sidebar.addPane($ui);
       .appendTo($ui);
 
     options.sidebar.addPane($ui);