diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2022-10-13 14:22:04 +0200 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2022-10-19 12:57:35 +0200 |
commit | ef760e0337018c8a45bb380d1a1d50f912ca23ee (patch) | |
tree | ea1f93502826804c837e8c7834396cf40c33e5c7 /apps/theming/js | |
parent | bbbc1d4a163400eb79cfac3e839769f2e54d7f0a (diff) | |
download | nextcloud-server-ef760e0337018c8a45bb380d1a1d50f912ca23ee.tar.gz nextcloud-server-ef760e0337018c8a45bb380d1a1d50f912ca23ee.zip |
Add admin user customization kill switch
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/theming/js')
-rw-r--r-- | apps/theming/js/settings-admin.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/theming/js/settings-admin.js b/apps/theming/js/settings-admin.js index 9fd1639ec3e..5617f7b67c8 100644 --- a/apps/theming/js/settings-admin.js +++ b/apps/theming/js/settings-admin.js @@ -173,6 +173,11 @@ window.addEventListener('DOMContentLoaded', function () { var el = $(this); }); + $('#userThemingDisabled').change(function(e) { + var checked = e.target.checked + setThemingValue('disable-user-theming', checked ? 'yes' : 'no') + }); + function onChange(e) { var el = $(this); var setting = el.parent().find('div[data-setting]').data('setting'); |