From 6725d921acf8e7f7411f52699c814f6871acc50a Mon Sep 17 00:00:00 2001 From: varunvaruns9 Date: Thu, 28 Feb 2019 18:49:44 +0530 Subject: [PATCH] popovers: Fix toggling of user popover. Fix the logic for closing user popover on clicking the chevron again in the buddy list. Fixes: #11690. --- static/js/popovers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/popovers.js b/static/js/popovers.js index 8add9758b4..7f2553e1ef 100644 --- a/static/js/popovers.js +++ b/static/js/popovers.js @@ -824,7 +824,7 @@ exports.register_click_handlers = function () { var target = $(this).closest('li'); var user_id = target.find('a').attr('data-user-id'); - if (current_user_sidebar_user_id === user_id) { + if (String(current_user_sidebar_user_id) === user_id) { // If the popover is already shown, clicking again should toggle it. popovers.hide_all(); return;