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'tmaster
parent
bba57a48e2
commit
4d4ae261f3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue