diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-03-06 15:03:19 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-03-06 15:03:19 +0000 |
commit | e57c3e3c477eab63bbca06365e791bf1986319b7 (patch) | |
tree | 19b45b19784055927013b2b16f7d67e3bc874ede /web | |
parent | cc462d77dc2df7ad658e4a52df303f108ed1d389 (diff) |
Listen for all inspector form duplicate events.
The form may be brought in via JS, so we have to add an event to
something that will always be there (or alternatively set up when
pulled in, which was the old pre-duplicates.js behaviour).
Diffstat (limited to 'web')
-rw-r--r-- | web/js/duplicates.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/js/duplicates.js b/web/js/duplicates.js index 4ed54846c..d80eb9a2d 100644 --- a/web/js/duplicates.js +++ b/web/js/duplicates.js @@ -190,10 +190,10 @@ $(function() { $("#problem_form").on("change.category", "select#form_category", problem_form_category_change); // Want to show duplicates when an inspector sets a report’s state to "duplicate". - $("#report_inspect_form").on("change.state", "select#state", inspect_form_state_change); + $(document).on('change.state', "#report_inspect_form select#state", inspect_form_state_change); // Also want to give inspectors a way to select a *new* duplicate report. - $("#js-change-duplicate-report").click(refresh_duplicate_list); + $(document).on('click', "#js-change-duplicate-report", refresh_duplicate_list); $('.js-hide-duplicate-suggestions').on('click', function(e){ e.preventDefault(); |