diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-05-23 12:51:45 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-05-28 14:37:11 +0100 |
commit | d6f264c35a4aef78e1c9df75a63aee0eecbd9a7b (patch) | |
tree | 621676faaf03be22cdaebd184aa7f829d31803b3 /web/cobrands | |
parent | 475809c40225901bfa363690a1a3ae4740548684 (diff) |
Have duplicate and asset messages work together.
Diffstat (limited to 'web/cobrands')
-rw-r--r-- | web/cobrands/fixmystreet/assets.js | 6 |
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; |