From a394778cded280ec7c4e3814d1dd828a63e32d02 Mon Sep 17 00:00:00 2001 From: Yashashvi Dave Date: Fri, 16 Nov 2018 14:32:17 +0530 Subject: [PATCH] statis/js/popover.js: Remove unused arg from `show_user_profile` func. Remove unused argument `element` from function `show_user_profile`. --- static/js/popovers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/popovers.js b/static/js/popovers.js index c17fb8fb19..975cfd4c17 100644 --- a/static/js/popovers.js +++ b/static/js/popovers.js @@ -219,7 +219,7 @@ exports.hide_user_profile = function () { $("#user-profile-modal").modal("hide"); }; -exports.show_user_profile = function (element, user) { +exports.show_user_profile = function (user) { popovers.hide_all(); var profile_data = []; @@ -739,7 +739,7 @@ exports.register_click_handlers = function () { $('body').on('click', '.info_popover_actions .view_user_profile', function (e) { var user_id = $(e.target).parents('ul').attr('data-user-id'); var user = people.get_person_from_user_id(user_id); - exports.show_user_profile(e.target, user); + exports.show_user_profile(user); e.stopPropagation(); e.preventDefault(); });