Add ui_state.home_tab_obscured() shim.

This commit is contained in:
Steve Howell
2017-03-18 13:11:12 -07:00
committed by Tim Abbott
parent ab34b5ee9f
commit 5b2407bb22
11 changed files with 15 additions and 11 deletions

View File

@@ -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();