]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/leaflet.layers.js
Replace some legacy routes with redirects
[rails.git] / app / assets / javascripts / leaflet.layers.js
index bb00f716c8c28d969c3f90c05db97970b4f1aabb..d6276919c892da8065691009ae6770a41d3d9917 100644 (file)
@@ -168,6 +168,8 @@ L.OSM.layers = function(options) {
               .trigger('change');
           }
 
               .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') : '');
           $(item).attr('class', disabled ? 'disabled' : '');
           item.attr('data-original-title', disabled ?
             I18n.t('javascripts.site.' + refName + '_zoom_in_tooltip') : '');