statis/js/popover.js: Remove unused arg from `show_user_profile` func.

Remove unused argument `element` from function `show_user_profile`.
This commit is contained in:
Yashashvi Dave 2018-11-16 14:32:17 +05:30 committed by Tim Abbott
parent 9d398ee335
commit a394778cde
1 changed files with 2 additions and 2 deletions

View File

@ -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();
});