Skip to content

Commit 158c555

Browse files
searches now create a history step
1 parent fd8d2dd commit 158c555

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1020,6 +1020,6 @@ $(window).ready(function() {
10201020
wvar.zoom = true;
10211021

10221022
if(text === "") { wvar.mode = null; }
1023-
clean_refresh(wvar.mode, true);
1023+
clean_refresh(wvar.mode, true, true);
10241024
});
10251025
});

js/tracker.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,9 @@ function throttle_events(event) {
324324
}
325325

326326

327-
function clean_refresh(text, force) {
327+
function clean_refresh(text, force, history_step) {
328328
force = !!force;
329+
history_step = !!history_step;
329330

330331
if(text == wvar.mode && !force) return false;
331332
if(ajax_inprogress) return false;
@@ -366,7 +367,7 @@ function clean_refresh(text, force) {
366367
);
367368
listScroll.refresh();
368369

369-
lhash_update();
370+
lhash_update(history_step);
370371
refresh();
371372
refreshPredictions();
372373

0 commit comments

Comments
 (0)