X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e0abb299d01097a5469a7e72b2e63194e0cc6003..eb7678145a87c1b9e3cd7ff2d3b5dc08132e4b51:/app/assets/javascripts/application.js diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 654b01680..d73b3c69c 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -5,7 +5,6 @@ //= require jquery.throttle-debounce //= require bootstrap.tooltip //= require bootstrap.dropdown -//= require augment //= require osm //= require leaflet //= require leaflet.osm @@ -18,7 +17,7 @@ //= require richtext //= require querystring -var querystring = require('querystring-component'); +var querystring = require("querystring-component"); /* * Called as the user scrolls/zooms around to maniplate hrefs of the @@ -40,11 +39,11 @@ window.updateLinks = function (loc, zoom, layers, object) { } var query = querystring.stringify(args); - if (query) href += '?' + query; + if (query) href += "?" + query; args = { lat: loc.lat, - lon: 'lon' in loc ? loc.lon : loc.lng, + lon: "lon" in loc ? loc.lon : loc.lng, zoom: zoom }; @@ -58,13 +57,13 @@ window.updateLinks = function (loc, zoom, layers, object) { }); var editDisabled = zoom < 13; - $('#edit_tab') - .tooltip({placement: 'bottom'}) - .off('click.minzoom') - .on('click.minzoom', function() { return !editDisabled; }) - .toggleClass('disabled', editDisabled) - .attr('data-original-title', editDisabled ? - I18n.t('javascripts.site.edit_disabled_tooltip') : ''); + $("#edit_tab") + .tooltip({placement: "bottom"}) + .off("click.minzoom") + .on("click.minzoom", function() { return !editDisabled; }) + .toggleClass("disabled", editDisabled) + .attr("data-original-title", editDisabled ? + I18n.t("javascripts.site.edit_disabled_tooltip") : ""); }; window.maximiseMap = function () {