generate the tooltip after the button

pull/1/head
Pierre Bondoerffer 7 years ago
parent 665e81912e
commit e08ed72653
No known key found for this signature in database
GPG Key ID: C0C7C0C5063F2236

@ -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) {

Loading…
Cancel
Save