aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/duplicates.js
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2020-01-16 15:51:44 +0000
committerDave Arter <davea@mysociety.org>2020-01-31 11:11:41 +0000
commit363cbb0ea0acf35a5bf56fcef6b3d60acc4f5fe7 (patch)
treef9aa7197a96e8d7a8411194975d9768ca708e8c3 /web/js/duplicates.js
parentc6992034cdbfdac30fb5704247585e294bba3566 (diff)
Display inline map for duplicate suggestions on mobile
For #2668.
Diffstat (limited to 'web/js/duplicates.js')
-rw-r--r--web/js/duplicates.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/js/duplicates.js b/web/js/duplicates.js
index ede22dc18..22f800694 100644
--- a/web/js/duplicates.js
+++ b/web/js/duplicates.js
@@ -42,6 +42,10 @@
url_params.pin_size = 'normal';
}
+ if ($('html').hasClass('mobile')) {
+ url_params.inline_maps = 1;
+ }
+
if (category && params && params.check_duplicates_dismissal ) {
dismissed = category === dismissed_category;
dismissed_category = category;