X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/cc57c65083528d7c9085a2121cea7650b2e9a794..e418075e26d80d68e4127d3358a2d8b11dee3a13:/app/assets/javascripts/leaflet.layers.js?ds=sidebyside diff --git a/app/assets/javascripts/leaflet.layers.js b/app/assets/javascripts/leaflet.layers.js index bb00f716c..d6276919c 100644 --- a/app/assets/javascripts/leaflet.layers.js +++ b/app/assets/javascripts/leaflet.layers.js @@ -168,6 +168,8 @@ L.OSM.layers = function(options) { .trigger('change'); } + layer.fire('statechange', {disabled: disabled, checked: checked}); + $(item).attr('class', disabled ? 'disabled' : ''); item.attr('data-original-title', disabled ? I18n.t('javascripts.site.' + refName + '_zoom_in_tooltip') : '');