mirror of https://github.com/zulip/zulip.git
left sidebar: Remove unneeded overlay code.
These handlers are not reachable if overlays are open.
This commit is contained in:
parent
14bfa74069
commit
dfddb0a636
|
@ -453,9 +453,6 @@ function keydown_enter_key() {
|
|||
return;
|
||||
}
|
||||
|
||||
if (overlays.is_active()) {
|
||||
overlays.close_active();
|
||||
}
|
||||
exports.clear_and_hide_search();
|
||||
narrow.by('stream', sub.name, {trigger: 'sidebar enter key'});
|
||||
}
|
||||
|
@ -484,9 +481,6 @@ exports.initialize = function () {
|
|||
if (e.metaKey || e.ctrlKey) {
|
||||
return;
|
||||
}
|
||||
if (overlays.is_active()) {
|
||||
overlays.close_active();
|
||||
}
|
||||
var stream_id = $(e.target).parents('li').attr('data-stream-id');
|
||||
var sub = stream_data.get_sub_by_id(stream_id);
|
||||
popovers.hide_all();
|
||||
|
|
|
@ -284,9 +284,6 @@ exports.initialize = function () {
|
|||
|
||||
// In a more componentized world, we would delegate some
|
||||
// of this stuff back up to our parents.
|
||||
if (overlays.is_active()) {
|
||||
overlays.close_active();
|
||||
}
|
||||
|
||||
var stream_id = $(e.target).parents('.narrow-filter').attr('data-stream-id');
|
||||
var sub = stream_data.get_sub_by_id(stream_id);
|
||||
|
|
Loading…
Reference in New Issue