mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 12:33:40 +00:00
Add ui_state.home_tab_obscured() shim.
This commit is contained in:
@@ -473,7 +473,7 @@ $(function () {
|
||||
if (e.metaKey || e.ctrlKey) {
|
||||
return;
|
||||
}
|
||||
if (ui.home_tab_obscured()) {
|
||||
if (ui_state.home_tab_obscured()) {
|
||||
ui.change_tab_to('#home');
|
||||
}
|
||||
var stream = $(e.target).parents('li').attr('data-name');
|
||||
@@ -534,7 +534,7 @@ function maybe_select_stream(e) {
|
||||
var topStream = $('#stream_filters li.narrow-filter').first().data('name');
|
||||
if (topStream !== undefined) {
|
||||
// undefined if there are no results
|
||||
if (ui.home_tab_obscured()) {
|
||||
if (ui_state.home_tab_obscured()) {
|
||||
ui.change_tab_to('#home');
|
||||
}
|
||||
exports.clear_and_hide_search();
|
||||
|
||||
Reference in New Issue
Block a user