From e08ed72653835a03bebba637a20c4e301a4fe717 Mon Sep 17 00:00:00 2001 From: Pierre Bondoerffer Date: Wed, 9 Aug 2017 11:11:53 +0200 Subject: [PATCH] generate the tooltip after the button --- www/common/toolbar2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/toolbar2.js b/www/common/toolbar2.js index 2165a3eb9..0b963a318 100644 --- a/www/common/toolbar2.js +++ b/www/common/toolbar2.js @@ -761,7 +761,6 @@ define([ var createUserAdmin = function (toolbar, config) { var $userAdmin = toolbar.$userAdmin.find('.'+USERADMIN_CLS).show(); - $userAdmin.find('button').attr('title', Messages.userAccountButton); var userMenuCfg = { $initBlock: $userAdmin }; @@ -776,6 +775,7 @@ define([ userMenuCfg.displayChangeName = 1; } Cryptpad.createUserAdminMenu(userMenuCfg); + $userAdmin.find('button').attr('title', Messages.userAccountButton); var $userButton = toolbar.$userNameButton = $userAdmin.find('a.' + USERBUTTON_CLS); $userButton.click(function (e) {