//= require jquery.throttle-debounce
//= require bootstrap.tooltip
//= require bootstrap.dropdown
-//= require augment
//= require osm
//= require leaflet
//= require leaflet.osm
//= require leaflet.map
//= require leaflet.zoom
//= require leaflet.locationfilter
-//= require i18n/translations
+//= require i18n
//= require oauth
//= require piwik
//= 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
}
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
};
});
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 () {