Skip to content

Commit 829cb4e

Browse files
committed
Autorefresh enabled only on search page
1 parent 562c8ec commit 829cb4e

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

src/org/opensolaris/opengrok/web/Scripts.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public String toHtml() {
125125
SCRIPTS.put("jquery-tablesorter", new FileScript("js/jquery-tablesorter-2.26.6.min.js", 12));
126126
SCRIPTS.put("tablesorter-parsers", new FileScript("js/tablesorter-parsers-0.0.1.js", 13));
127127
SCRIPTS.put("searchable-option-list", new FileScript("js/searchable-option-list-2.0.4.min.js", 14));
128-
SCRIPTS.put("utils", new FileScript("js/utils-0.0.14.js", 15));
128+
SCRIPTS.put("utils", new FileScript("js/utils-0.0.15.js", 15));
129129
SCRIPTS.put("repos", new FileScript("js/repos-0.0.1.js", 20));
130130
SCRIPTS.put("diff", new FileScript("js/diff-0.0.2.js", 20));
131131
}

web/js/searchable-option-list-2.0.4.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,12 @@
10411041
$changedItem
10421042
.prop('checked', false)
10431043
.trigger('change');
1044-
$('#sbox').submit();
1044+
/*
1045+
* Modified 2017
1046+
*/
1047+
if (isOnSearchPage()) {
1048+
$('#sbox').submit();
1049+
}
10451050
})
10461051
.prependTo($existingDisplayItem);
10471052
}

0 commit comments

Comments
 (0)