Skip to content

Commit f2e843d

Browse files
authored
Merge pull request #1760 from Orviss/line-num-click-deletes-params
Clicking on line number erases parameters
2 parents 157e930 + e3bf10e commit f2e843d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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.3.min.js", 14));
128-
SCRIPTS.put("utils", new FileScript("js/utils-0.0.13.js", 15));
128+
SCRIPTS.put("utils", new FileScript("js/utils-0.0.14.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/utils-0.0.13.js renamed to web/js/utils-0.0.14.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@
225225

226226
// Add the state to history as-per normal anchor links
227227
if (HISTORY_SUPPORT && pushToHistory) {
228-
history.pushState({}, document.title, location.pathname + href);
228+
history.pushState({}, document.title, location.pathname + location.search + href);
229229
}
230230
}
231231

0 commit comments

Comments
 (0)