]> git.openstreetmap.org Git - rails.git/commitdiff
Update location filter checkbox state correctly
authorJohn Firebaugh <john.firebaugh@gmail.com>
Fri, 19 Jul 2013 22:04:55 +0000 (15:04 -0700)
committerJohn Firebaugh <john.firebaugh@gmail.com>
Mon, 5 Aug 2013 15:31:45 +0000 (08:31 -0700)
app/assets/javascripts/leaflet.share.js

index b736b41c1c3f4f1bf41ba237cdb1200636dbba74..1f13bf60966ca8e74338a82b453510cb7f976012 100644 (file)
@@ -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));