popovers: Fix closing of the left sidebar with "more topics".

This was another case of incorrect logic due to treating the sidebars
as popovers for the purposes of .hide_all().

Fixes #12274.
This commit is contained in:
Tim Abbott
2019-07-09 16:54:39 -07:00
parent 5e6d86c8c4
commit 01bc4674e3
2 changed files with 10 additions and 10 deletions

View File

@@ -11,7 +11,7 @@ exports.is_zoomed_in = function () {
function zoom_in() {
var stream_id = topic_list.active_stream_id();
popovers.hide_all();
popovers.hide_all_except_sidebars();
topic_list.zoom_in();
stream_list.zoom_in_topics({
stream_id: stream_id,
@@ -23,7 +23,7 @@ function zoom_in() {
exports.zoom_out = function () {
var stream_li = topic_list.get_stream_li();
popovers.hide_all();
popovers.hide_all_except_sidebars();
topic_list.zoom_out();
stream_list.zoom_out_topics();