mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 08:56:10 +00:00
Don't trigger two events when our app changes the hash
(imported from commit c17a82b043c10927de149b105c6ceea5175b6f4f)
This commit is contained in:
@@ -83,6 +83,8 @@ function do_hashchange() {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$(document).trigger($.Event('hashchange.zephyr'));
|
||||||
|
|
||||||
// NB: In Firefox, window.location.hash is URI-decoded.
|
// NB: In Firefox, window.location.hash is URI-decoded.
|
||||||
// Even if the URL bar says #%41%42%43%44, the value here will
|
// Even if the URL bar says #%41%42%43%44, the value here will
|
||||||
// be #ABCD.
|
// be #ABCD.
|
||||||
@@ -111,7 +113,6 @@ function do_hashchange() {
|
|||||||
|
|
||||||
function hashchanged() {
|
function hashchanged() {
|
||||||
changing_hash = true;
|
changing_hash = true;
|
||||||
$(document).trigger($.Event('hashchange.zephyr'));
|
|
||||||
var ret = do_hashchange();
|
var ret = do_hashchange();
|
||||||
changing_hash = false;
|
changing_hash = false;
|
||||||
return ret;
|
return ret;
|
||||||
|
|||||||
Reference in New Issue
Block a user