From 1d237735efffab1d87f958ecc80e771918c0a76e Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 17 Aug 2017 17:26:20 +0200 Subject: [PATCH] Useradmin menu in pad2 --- www/common/toolbar3.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/www/common/toolbar3.js b/www/common/toolbar3.js index 247fd7b37..20bec12e9 100644 --- a/www/common/toolbar3.js +++ b/www/common/toolbar3.js @@ -777,7 +777,7 @@ define([ var userMenuCfg = { $initBlock: $userAdmin }; - if (!config.hideDisplayName) { // TODO: config.userAdmin.hideDisplayName? + if (!config.hideDisplayName) { $.extend(true, userMenuCfg, { displayNameCls: USERNAME_CLS, changeNameButtonCls: USERBUTTON_CLS, @@ -790,7 +790,8 @@ define([ Cryptpad.createUserAdminMenu(userMenuCfg); $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) { e.preventDefault(); e.stopPropagation(); @@ -820,7 +821,7 @@ define([ } updateDisplayName(toolbar, config); }, 0); - }); + });*/ updateDisplayName(toolbar, config);