]> git.openstreetmap.org Git - rails.git/commitdiff
Hide control tooltips on #map-ui expansion, closes #55
authorAaron Lidman <aaronlidman@gmail.com>
Fri, 15 Nov 2013 19:26:36 +0000 (11:26 -0800)
committerAaron Lidman <aaronlidman@gmail.com>
Fri, 15 Nov 2013 19:26:36 +0000 (11:26 -0800)
app/assets/javascripts/leaflet.key.js
app/assets/javascripts/leaflet.layers.js
app/assets/javascripts/leaflet.share.js

index ea236a569e316b99ec87f0e86f6189a75fccfbaf..58bfbf6d2aa07644d98585240f1b9d948883c946 100644 (file)
@@ -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() {
index c506c951ea312c6f448ac8872eea0ad535aef83c..b04216d2696f126a928e5b220d3e9a74e3063a77 100644 (file)
@@ -171,6 +171,7 @@ L.OSM.layers = function(options) {
       e.stopPropagation();
       e.preventDefault();
       options.sidebar.togglePane($ui, button);
+      $('.leaflet-control .control-button').tooltip('hide');
     }
 
     return $container[0];
index 6a4491c2a7e57fcbf6158603bf8779dfd8990f70..d4c82953202cb9a4e828a042a10f0efc064bbdee 100644 (file)
@@ -230,6 +230,7 @@ L.OSM.share = function (options) {
 
       update();
       options.sidebar.togglePane($ui, button);
+      $('.leaflet-control .control-button').tooltip('hide');
     }
 
     function toggleMarker() {