]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/leaflet.key.js
Merge pull request #33 from tomhughes/routing
[rails.git] / app / assets / javascripts / leaflet.key.js
index 3f71932fbbcdf131f5a9bd95bbe89f7d73d83066..58bfbf6d2aa07644d98585240f1b9d948883c946 100644 (file)
@@ -6,7 +6,7 @@ L.OSM.key = function (options) {
       .attr('class', 'control-key');
 
     var button = $('<a>')
-      .attr('class', 'control-button mobile-hide')
+      .attr('class', 'control-button')
       .attr('href', '#')
       .html('<span class="icon key"></span>')
       .on('click', toggle)
@@ -56,6 +56,7 @@ L.OSM.key = function (options) {
       if (!button.hasClass('disabled')) {
         options.sidebar.togglePane($ui, button);
       }
+      $('.leaflet-control .control-button').tooltip('hide');
     }
 
     function updateButton() {