* 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],
- I18n.t("javascripts.site.edit_disabled_tooltip") : "");
+ I18n.t("javascripts.site.edit_disabled_tooltip") : "")
+ // Disable the button group and also the buttons to avoid
+ // inconsistent behaviour when zooming
+ .toggleClass("disabled", editDisabled)
+ .find("a")
+ .toggleClass("disabled", editDisabled);
$("header").children(":visible").each(function (i, e) {
compactWidth = compactWidth + $(e).outerWidth();
});
$("header").children(":visible").each(function (i, e) {
compactWidth = compactWidth + $(e).outerWidth();
});