Useradmin menu in pad2
This commit is contained in:
parent
d1157c4d72
commit
1d237735ef
@ -777,7 +777,7 @@ define([
|
|||||||
var userMenuCfg = {
|
var userMenuCfg = {
|
||||||
$initBlock: $userAdmin
|
$initBlock: $userAdmin
|
||||||
};
|
};
|
||||||
if (!config.hideDisplayName) { // TODO: config.userAdmin.hideDisplayName?
|
if (!config.hideDisplayName) {
|
||||||
$.extend(true, userMenuCfg, {
|
$.extend(true, userMenuCfg, {
|
||||||
displayNameCls: USERNAME_CLS,
|
displayNameCls: USERNAME_CLS,
|
||||||
changeNameButtonCls: USERBUTTON_CLS,
|
changeNameButtonCls: USERBUTTON_CLS,
|
||||||
@ -790,7 +790,8 @@ define([
|
|||||||
Cryptpad.createUserAdminMenu(userMenuCfg);
|
Cryptpad.createUserAdminMenu(userMenuCfg);
|
||||||
$userAdmin.find('button').attr('title', Messages.userAccountButton);
|
$userAdmin.find('button').attr('title', Messages.userAccountButton);
|
||||||
|
|
||||||
var $userButton = toolbar.$userNameButton = $userAdmin.find('a.' + USERBUTTON_CLS);
|
// TODO iframe
|
||||||
|
/*var $userButton = toolbar.$userNameButton = $userAdmin.find('a.' + USERBUTTON_CLS);
|
||||||
$userButton.click(function (e) {
|
$userButton.click(function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
@ -820,7 +821,7 @@ define([
|
|||||||
}
|
}
|
||||||
updateDisplayName(toolbar, config);
|
updateDisplayName(toolbar, config);
|
||||||
}, 0);
|
}, 0);
|
||||||
});
|
});*/
|
||||||
|
|
||||||
updateDisplayName(toolbar, config);
|
updateDisplayName(toolbar, config);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user