From cb18ef07a794c73388fc0e176cc189e264882628 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 29 Jun 2016 17:39:29 -0700 Subject: [PATCH] Rename hashchange.zulip event to avoid jquery 1.8 interaction. --- static/js/hashchange.js | 4 ++-- static/js/message_list.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/hashchange.js b/static/js/hashchange.js index 3b8e2e4e75..a1887a1d8b 100644 --- a/static/js/hashchange.js +++ b/static/js/hashchange.js @@ -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 diff --git a/static/js/message_list.js b/static/js/message_list.js index 3d6c324a23..db56d465f1 100644 --- a/static/js/message_list.js +++ b/static/js/message_list.js @@ -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(); });