diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-01-16 11:10:36 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-01-16 11:10:36 +0100 |
commit | 0cb3504d4a655d435194f257895dbbf0fc96c2a4 (patch) | |
tree | badd2a2c25d00d9c920f3f1c9a9b65066cb13c10 /ishtar_common/static/js/ishtar.js | |
parent | 9b3581e13e690f3deed43280f96b9aa08784861d (diff) | |
download | Ishtar-0cb3504d4a655d435194f257895dbbf0fc96c2a4.tar.bz2 Ishtar-0cb3504d4a655d435194f257895dbbf0fc96c2a4.zip |
UI: Fix search
Diffstat (limited to 'ishtar_common/static/js/ishtar.js')
-rw-r--r-- | ishtar_common/static/js/ishtar.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/ishtar_common/static/js/ishtar.js b/ishtar_common/static/js/ishtar.js index 31621502d..840d588f3 100644 --- a/ishtar_common/static/js/ishtar.js +++ b/ishtar_common/static/js/ishtar.js @@ -275,7 +275,7 @@ function long_wait(){ var last_window; -function load_window(url, speed, on_success){ +function load_window(url, speed, on_success, no_jump){ $("#progress").show(); $.ajax({ url: url, @@ -293,10 +293,12 @@ function load_window(url, speed, on_success){ $("#window").append(html); } $("#"+last_window).show(); - // jump to this window - var url = location.href; - location.href = "#" + last_window; - history.replaceState(null, null, url); + if (!no_jump){ + // jump to this window + var url = location.href; + location.href = "#" + last_window; + history.replaceState(null, null, url); + } if (on_success) on_success(); }, error:function(XMLHttpRequest, textStatus, errorThrows){ |