mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
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:
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
Block a user