From d3e99bc8bd58533b9432518f8d0573995b8082b9 Mon Sep 17 00:00:00 2001 From: Aaron Lidman Date: Fri, 15 Nov 2013 11:26:36 -0800 Subject: [PATCH] Hide control tooltips on #map-ui expansion, closes #55 --- app/assets/javascripts/leaflet.key.js | 1 + app/assets/javascripts/leaflet.layers.js | 1 + app/assets/javascripts/leaflet.share.js | 1 + 3 files changed, 3 insertions(+) diff --git a/app/assets/javascripts/leaflet.key.js b/app/assets/javascripts/leaflet.key.js index ea236a569..58bfbf6d2 100644 --- a/app/assets/javascripts/leaflet.key.js +++ b/app/assets/javascripts/leaflet.key.js @@ -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() { diff --git a/app/assets/javascripts/leaflet.layers.js b/app/assets/javascripts/leaflet.layers.js index c506c951e..b04216d26 100644 --- a/app/assets/javascripts/leaflet.layers.js +++ b/app/assets/javascripts/leaflet.layers.js @@ -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]; diff --git a/app/assets/javascripts/leaflet.share.js b/app/assets/javascripts/leaflet.share.js index 6a4491c2a..d4c829532 100644 --- a/app/assets/javascripts/leaflet.share.js +++ b/app/assets/javascripts/leaflet.share.js @@ -230,6 +230,7 @@ L.OSM.share = function (options) { update(); options.sidebar.togglePane($ui, button); + $('.leaflet-control .control-button').tooltip('hide'); } function toggleMarker() { -- 2.39.5