mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Hiding chat-settings if not logged in as admin
This commit is contained in:
@@ -42,6 +42,7 @@ var Admin = {
|
||||
document.getElementById("password").value = "";
|
||||
document.getElementById("password").setAttribute("placeholder", "Change admin password");
|
||||
Helper.removeClass(".user-password-li", "hide");
|
||||
Helper.removeClass(".chat-toggle-li", "hide");
|
||||
Helper.removeClass(".delete-all", "hide");
|
||||
if(document.getElementsByClassName("password_protected")[0].checked) {
|
||||
Helper.removeClass(".change_user_pass", "hide");
|
||||
@@ -123,6 +124,7 @@ var Admin = {
|
||||
|
||||
|
||||
Helper.addClass(".user-password-li", "hide");
|
||||
Helper.addClass(".chat-toggle-li", "hide");
|
||||
Helper.addClass(".delete-all", "hide");
|
||||
|
||||
if(document.getElementsByClassName("password_protected")[0].checked) {
|
||||
|
||||
Reference in New Issue
Block a user