From 5c32e2ff4907af288ccda02c77efc812990d7bed Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 9 Jul 2019 23:03:41 -0700 Subject: [PATCH] popovers: Fix migration to popovers.hide_all_except_sidebars(). I'm not really sure how I missed this in the original commit. --- frontend_tests/node_tests/activity.js | 2 +- static/js/activity.js | 2 +- static/js/user_search.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend_tests/node_tests/activity.js b/frontend_tests/node_tests/activity.js index 497fbe958c..b92e42922a 100644 --- a/frontend_tests/node_tests/activity.js +++ b/frontend_tests/node_tests/activity.js @@ -39,7 +39,7 @@ const _pm_list = { }; const _popovers = { - hide_all_except_userlist_sidebar: function () {}, + hide_all_except_sidebars: function () {}, hide_all: function () {}, show_userlist_sidebar: function () { $('.column-right').addClass('expanded'); diff --git a/static/js/activity.js b/static/js/activity.js index 1a9977b592..f0404c6879 100644 --- a/static/js/activity.js +++ b/static/js/activity.js @@ -213,7 +213,7 @@ exports.build_user_sidebar = function () { function do_update_users_for_search() { // Hide all the popovers but not userlist sidebar // when the user is searching. - popovers.hide_all_except_userlist_sidebar(); + popovers.hide_all_except_sidebars(); exports.build_user_sidebar(); exports.user_cursor.reset(); } diff --git a/static/js/user_search.js b/static/js/user_search.js index 81fe5632dc..7ba29d5ffb 100644 --- a/static/js/user_search.js +++ b/static/js/user_search.js @@ -52,7 +52,7 @@ var user_search = function (opts) { self.show_widget = function () { // Hide all the popovers but not userlist sidebar // when the user wants to search. - popovers.hide_all_except_userlist_sidebar(); + popovers.hide_all_except_sidebars(); $widget.removeClass('notdisplayed'); };