diff options
author | Dave Arter <davea@mysociety.org> | 2019-08-22 18:02:25 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2019-10-07 13:41:18 +0100 |
commit | 8ea53bc313bdbbc3e1289ef2eaaba1e032feef05 (patch) | |
tree | 310b0cc0ebeab2690523efe2e827653e37a4a5e8 | |
parent | c28e4164e53baa11b602ffedf2bb4bc617b0c00b (diff) |
Dismiss duplicate selection UI when returning to map on mobile
-rw-r--r-- | web/cobrands/fixmystreet/fixmystreet.js | 3 | ||||
-rw-r--r-- | web/js/duplicates.js | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js index 6b88bc3d3..100208c09 100644 --- a/web/cobrands/fixmystreet/fixmystreet.js +++ b/web/cobrands/fixmystreet/fixmystreet.js @@ -1460,6 +1460,9 @@ fixmystreet.display = { $('html').addClass('only-map'); $('#mob_sub_map_links').removeClass('map_complete'); $('#mob_ok').text(translation_strings.ok); + if (fixmystreet.duplicates) { + fixmystreet.duplicates.hide(); + } }); }); } diff --git a/web/js/duplicates.js b/web/js/duplicates.js index 188459565..da0f7d176 100644 --- a/web/js/duplicates.js +++ b/web/js/duplicates.js @@ -209,4 +209,10 @@ remove_duplicate_list(); }); + fixmystreet.duplicates = { + hide: function() { + remove_duplicate_pins(); + remove_duplicate_list(); + } + }; })(); |