diff options
author | Kristian Lyngstol <kristian@bohemians.org> | 2016-05-16 17:48:14 +0200 |
---|---|---|
committer | Kristian Lyngstol <kristian@bohemians.org> | 2016-05-16 17:48:14 +0200 |
commit | 4b129728519bba7f0fb3f66d650f193c6ee66ce0 (patch) | |
tree | 913b382d02974cea6af8da7014e3b65d38216d13 /web/js | |
parent | 29690d02b33f4f2cd26c7d1fc3f5ef51859f0aec (diff) |
Frontend: Hide certain elements in public-mode
Probably a few more items that needs to be added here.
Diffstat (limited to 'web/js')
-rw-r--r-- | web/js/nms.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/web/js/nms.js b/web/js/nms.js index 5df9431..4092782 100644 --- a/web/js/nms.js +++ b/web/js/nms.js @@ -568,9 +568,11 @@ function getInitialConfig() { success: function (data, textStatus, jqXHR) { if (data["config"]["public"] == "true") { nms._public = true; + document.body.classList.add("gondul-public"); } else { console.log("Private"); nms._public = false; + document.body.classList.add("gondul-private"); } } }); |