From f5b1081c93f1f286b99b2c5f377e7ab3bb05a062 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 9 Jul 2019 16:56:25 -0700 Subject: [PATCH] popovers: Fix name for stream_popover.hide_streamlist_sidebar(). The previous name was super confusing; this function is analogous to hide_userlist_sidebar() and should be named appropriately for that role. --- static/js/popovers.js | 2 +- static/js/stream_popover.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/popovers.js b/static/js/popovers.js index f6b782d76e..7e136b85cf 100644 --- a/static/js/popovers.js +++ b/static/js/popovers.js @@ -1095,7 +1095,7 @@ exports.hide_all_except_sidebars = function () { // or narrow window sidebars. exports.hide_all = function () { popovers.hide_userlist_sidebar(); - stream_popover.restore_stream_list_size(); + stream_popover.hide_streamlist_sidebar(); popovers.hide_all_except_sidebars(); }; diff --git a/static/js/stream_popover.js b/static/js/stream_popover.js index 75021d2453..f3f39a90f7 100644 --- a/static/js/stream_popover.js +++ b/static/js/stream_popover.js @@ -61,7 +61,7 @@ exports.show_streamlist_sidebar = function () { resize.resize_page_components(); }; -exports.restore_stream_list_size = function () { +exports.hide_streamlist_sidebar = function () { $(".app-main .column-left").removeClass("expanded"); };