mirror of https://github.com/zulip/zulip.git
Rename hashchange.zulip event to avoid jquery 1.8 interaction.
This commit is contained in:
parent
d5be9e8b2d
commit
cb18ef07a7
|
@ -47,7 +47,7 @@ exports.changehash = function (newhash) {
|
|||
if (changing_hash) {
|
||||
return;
|
||||
}
|
||||
$(document).trigger($.Event('hashchange.zulip'));
|
||||
$(document).trigger($.Event('zuliphashchange.zulip'));
|
||||
set_hash(newhash);
|
||||
favicon.reset();
|
||||
};
|
||||
|
@ -125,7 +125,7 @@ function do_hashchange(from_reload) {
|
|||
return false;
|
||||
}
|
||||
|
||||
$(document).trigger($.Event('hashchange.zulip'));
|
||||
$(document).trigger($.Event('zuliphashchange.zulip'));
|
||||
|
||||
// NB: In Firefox, window.location.hash is URI-decoded.
|
||||
// Even if the URL bar says #%41%42%43%44, the value here will
|
||||
|
|
|
@ -631,7 +631,7 @@ exports.all = new exports.MessageList(
|
|||
// doing something. Be careful, though, if you try to capture
|
||||
// mousemove, then you will have to contend with the autoscroll
|
||||
// itself generating mousemove events.
|
||||
$(document).on('message_selected.zulip hashchange.zulip mousewheel', function (event) {
|
||||
$(document).on('message_selected.zulip zuliphashchange.zulip mousewheel', function (event) {
|
||||
viewport.stop_auto_scrolling();
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue