]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/leaflet.query.js
Remove more header font size overrides
[rails.git] / app / assets / javascripts / leaflet.query.js
index 9064872740b797888c90fc4520d8dca00321d97f..5f449c214a31c782f67655e319a497073d0a71c4 100644 (file)
@@ -2,32 +2,32 @@ L.OSM.query = function (options) {
   var control = L.control(options);
 
   control.onAdd = function (map) {
   var control = L.control(options);
 
   control.onAdd = function (map) {
-    var $container = $('<div>')
-      .attr('class', 'control-query');
+    var $container = $("<div>")
+      .attr("class", "control-query");
 
 
-    var link = $('<a>')
-      .attr('class', 'control-button')
-      .attr('href', '#')
-      .html('<span class="icon query"></span>')
+    var link = $("<a>")
+      .attr("class", "control-button")
+      .attr("href", "#")
+      .html("<span class=\"icon query\"></span>")
       .appendTo($container);
 
       .appendTo($container);
 
-    map.on('zoomend', update);
+    map.on("zoomend", update);
 
     update();
 
     function update() {
 
     update();
 
     function update() {
-      var wasDisabled = link.hasClass('disabled'),
-        isDisabled = map.getZoom() < 14;
+      var wasDisabled = link.hasClass("disabled"),
+          isDisabled = map.getZoom() < 14;
       link
       link
-        .toggleClass('disabled', isDisabled)
-        .attr('data-original-title', I18n.t(isDisabled ?
-          'javascripts.site.queryfeature_disabled_tooltip' :
-          'javascripts.site.queryfeature_tooltip'));
+        .toggleClass("disabled", isDisabled)
+        .attr("data-original-title", I18n.t(isDisabled ?
+          "javascripts.site.queryfeature_disabled_tooltip" :
+          "javascripts.site.queryfeature_tooltip"));
 
       if (isDisabled && !wasDisabled) {
 
       if (isDisabled && !wasDisabled) {
-        link.trigger('disabled');
+        link.trigger("disabled");
       } else if (wasDisabled && !isDisabled) {
       } else if (wasDisabled && !isDisabled) {
-        link.trigger('enabled');
+        link.trigger("enabled");
       }
     }
 
       }
     }