]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/leaflet.key.js
Simplify sidebar/resize
[rails.git] / app / assets / javascripts / leaflet.key.js
index 5aae3d1c25c1efe53b03793ed78abc8a3d561cab..d12187bc2f80581ba5f42d9120c3f0abee31bcf3 100644 (file)
@@ -14,19 +14,20 @@ L.OSM.key = function (options) {
       .appendTo($container);
 
     var $ui = $('<div>')
       .appendTo($container);
 
     var $ui = $('<div>')
-      .attr('class', 'layers-ui');
+      .attr('class', 'key-ui');
 
 
-    $('<section>')
+    $('<header>')
+      .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>')
       .appendTo($ui);
 
     var $section = $('<section>')
       .appendTo($ui);