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