aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/duplicates.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/js/duplicates.js')
-rw-r--r--web/js/duplicates.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/web/js/duplicates.js b/web/js/duplicates.js
index a8aceb9e3..ede22dc18 100644
--- a/web/js/duplicates.js
+++ b/web/js/duplicates.js
@@ -13,12 +13,14 @@
// but undefined on new report page.
var report_id = $("#report_inspect_form .js-report-id").text() || undefined;
- function refresh_duplicate_list(evt, params) {
+ function refresh_duplicate_list(evt, params, category) {
if (params && params.skip_duplicates) {
return;
}
- var category = $('select[name="category"]').val();
+ if (!category) {
+ category = $('select[name="category"]').val();
+ }
if (category === '-- Pick a category --') {
return;
}
@@ -195,7 +197,8 @@
if (!!duplicate_of) {
return;
}
- refresh_duplicate_list();
+ var category = $("#report_inspect_form [name=category]").val();
+ refresh_duplicate_list(undefined, {}, category);
}
function take_effect() {