always close the user admin menu after you've executed one of its actions

for some reason some browsers seem to do it implicitly, while others don't
This commit is contained in:
ansuz 2022-04-27 14:22:03 +05:30
parent bba57a48e2
commit 4d4ae261f3

View File

@ -2014,6 +2014,15 @@ define([
// If no display name, do not display the parentheses
$userbig.append($('<span>', {'class': 'account-name'}).text(accountName));
}*/
options.forEach(function (option, i) {
var f = option.action;
if (!f) { return; }
option.action = function () {
f();
return true;
};
});
var dropdownConfigUser = {
buttonContent: $userButton[0],
options: options, // Entries displayed in the menu