aboutsummaryrefslogtreecommitdiffstats
path: root/web/cobrands
diff options
context:
space:
mode:
Diffstat (limited to 'web/cobrands')
-rw-r--r--web/cobrands/fixmystreet/assets.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/cobrands/fixmystreet/assets.js b/web/cobrands/fixmystreet/assets.js
index e6202f809..ad14b9390 100644
--- a/web/cobrands/fixmystreet/assets.js
+++ b/web/cobrands/fixmystreet/assets.js
@@ -942,10 +942,10 @@ fixmystreet.message_controller = (function() {
}
// This hides the responsibility message, and (unless a
- // stopper message is shown) reenables the report form
+ // stopper message or dupes are shown) reenables the report form
function responsibility_off() {
hide_responsibility_errors();
- if (!document.getElementById(stopperId)) {
+ if (!document.getElementById(stopperId) && !$('#js-duplicate-reports').is(':visible')) {
enable_report_form();
}
}
@@ -1004,7 +1004,7 @@ fixmystreet.message_controller = (function() {
if (!matching.length) {
$id.remove();
- if ( !$('#js-roads-responsibility').is(':visible') ) {
+ if ( !$('#js-roads-responsibility').is(':visible') && !$('#js-duplicate-reports').is(':visible') ) {
enable_report_form();
}
return;