From: John Firebaugh Date: Fri, 19 Jul 2013 22:04:55 +0000 (-0700) Subject: Update location filter checkbox state correctly X-Git-Tag: live~5422^2~19 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/6edf63388591740a2e2fd69fa34e02418450a463 Update location filter checkbox state correctly --- diff --git a/app/assets/javascripts/leaflet.share.js b/app/assets/javascripts/leaflet.share.js index b736b41c1..1f13bf609 100644 --- a/app/assets/javascripts/leaflet.share.js +++ b/app/assets/javascripts/leaflet.share.js @@ -253,6 +253,9 @@ L.OSM.share = function (options) { $('#link_marker, #embed_marker') .prop('checked', map.hasLayer(marker)); + $('#image_filter') + .prop('checked', locationFilter.isEnabled()); + // Link $shortLink.attr('href', map.getShortUrl(marker));