diff --git a/www/login/index.html b/www/login/index.html index cd39e6395..e01c78a09 100644 --- a/www/login/index.html +++ b/www/login/index.html @@ -18,6 +18,7 @@ + About diff --git a/www/login/main.js b/www/login/main.js index 7a677cebb..194c824ac 100644 --- a/www/login/main.js +++ b/www/login/main.js @@ -13,6 +13,14 @@ define([ $sel.find('button').addClass('btn').addClass('btn-secondary'); $sel.show(); + // User admin menu + var $userMenu = $('#user-menu'); + var userMenuCfg = { + $initBlock: $userMenu + }; + var $userAdmin = Cryptpad.createUserAdminMenu(userMenuCfg); + $userAdmin.find('button').addClass('btn').addClass('btn-secondary'); + $(window).click(function () { $('.cryptpad-dropdown').hide(); }); diff --git a/www/register/index.html b/www/register/index.html index 8e2a59d48..dd9765423 100644 --- a/www/register/index.html +++ b/www/register/index.html @@ -17,6 +17,7 @@ + About diff --git a/www/register/main.js b/www/register/main.js index bafe55423..7d14dc02a 100644 --- a/www/register/main.js +++ b/www/register/main.js @@ -15,6 +15,14 @@ define([ $sel.find('button').addClass('btn').addClass('btn-secondary'); $sel.show(); + // User admin menu + var $userMenu = $('#user-menu'); + var userMenuCfg = { + $initBlock: $userMenu + }; + var $userAdmin = Cryptpad.createUserAdminMenu(userMenuCfg); + $userAdmin.find('button').addClass('btn').addClass('btn-secondary'); + $(window).click(function () { $('.cryptpad-dropdown').hide(); });