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