mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	Rename hashchange.zulip event to avoid jquery 1.8 interaction.
This commit is contained in:
		@@ -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();
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user