* view tab and various other links
*/
window.updateLinks = function (loc, zoom, layers, object) {
$(".geolink").each(function (index, link) {
var href = link.href.split(/[?#]/)[0],
* view tab and various other links
*/
window.updateLinks = function (loc, zoom, layers, object) {
$(".geolink").each(function (index, link) {
var href = link.href.split(/[?#]/)[0],
- args = querystring.parse(link.search.substring(1)),
- editlink = $(link).hasClass("editlink");
+ args = Qs.parse(link.search.substring(1)),
+ editlink = $(link).hasClass("editlink");
- .off("click.minzoom")
- .on("click.minzoom", function () { return !editDisabled; })
+ .attr("data-bs-original-title", editDisabled ?
+ I18n.t("javascripts.site.edit_disabled_tooltip") : "")
+ // Disable the button group and also the buttons to avoid
+ // inconsistent behaviour when zooming
$("header").children(":visible").each(function (i, e) {
compactWidth = compactWidth + $(e).outerWidth();
});
$("header").children(":visible").each(function (i, e) {
compactWidth = compactWidth + $(e).outerWidth();
});