mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 15:33:30 +00:00
tutorial: don't try to restore event handlers added during the tutorial.
They end up being duplicate blueslip handlers, and they cause hotkeys to not work. (imported from commit 6240d1f2b00b3fe9f02ed2e64f2406b22fa4f6ea)
This commit is contained in:
@@ -141,8 +141,7 @@ function disable_event_handlers() {
|
||||
function enable_event_handlers() {
|
||||
$('body').css({'overflow':'auto'}); // enables scrolling the feed
|
||||
$.each(["keydown", "keyup", "keypress", "scroll"], function (idx, event_name) {
|
||||
var new_events = $(document).data("events")[event_name];
|
||||
$(document).data("events")[event_name] = event_handlers[event_name].concat(new_events);
|
||||
$(document).data("events")[event_name] = event_handlers[event_name];
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user