From 4d4ae261f38aedd3a0bcda3dd01898b393ebea60 Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 27 Apr 2022 14:22:03 +0530 Subject: [PATCH] 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 --- www/common/common-ui-elements.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index fe29b35c4..0383d2b81 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -2014,6 +2014,15 @@ define([ // If no display name, do not display the parentheses $userbig.append($('', {'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