|
|
@ -761,7 +761,6 @@ define([
|
|
|
|
|
|
|
|
|
|
|
|
var createUserAdmin = function (toolbar, config) {
|
|
|
|
var createUserAdmin = function (toolbar, config) {
|
|
|
|
var $userAdmin = toolbar.$userAdmin.find('.'+USERADMIN_CLS).show();
|
|
|
|
var $userAdmin = toolbar.$userAdmin.find('.'+USERADMIN_CLS).show();
|
|
|
|
$userAdmin.find('button').attr('title', Messages.userAccountButton);
|
|
|
|
|
|
|
|
var userMenuCfg = {
|
|
|
|
var userMenuCfg = {
|
|
|
|
$initBlock: $userAdmin
|
|
|
|
$initBlock: $userAdmin
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -776,6 +775,7 @@ define([
|
|
|
|
userMenuCfg.displayChangeName = 1;
|
|
|
|
userMenuCfg.displayChangeName = 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Cryptpad.createUserAdminMenu(userMenuCfg);
|
|
|
|
Cryptpad.createUserAdminMenu(userMenuCfg);
|
|
|
|
|
|
|
|
$userAdmin.find('button').attr('title', Messages.userAccountButton);
|
|
|
|
|
|
|
|
|
|
|
|
var $userButton = toolbar.$userNameButton = $userAdmin.find('a.' + USERBUTTON_CLS);
|
|
|
|
var $userButton = toolbar.$userNameButton = $userAdmin.find('a.' + USERBUTTON_CLS);
|
|
|
|
$userButton.click(function (e) {
|
|
|
|
$userButton.click(function (e) {
|
|
|
|