summaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
authorStephane V <stephane@vergeylen.eu>2014-07-16 22:23:15 +0200
committerJan-Christoph Borchardt <hey@jancborchardt.net>2014-08-28 23:45:21 +0200
commitc7c54d93618d456ce6e53ee35b4280097cc3f54c (patch)
tree23883e7b2ad0201d0a707430e707db95da79e1b1 /settings/js
parent54eb2f42df3c0e4684f0cbd29e507b99a5cfeb8f (diff)
downloadnextcloud-server-c7c54d93618d456ce6e53ee35b4280097cc3f54c.tar.gz
nextcloud-server-c7c54d93618d456ce6e53ee35b4280097cc3f54c.zip
Adds 2 checkboxes at the top of userlist in the settings, to display/hide optional columns
This fixes #9367.
Diffstat (limited to 'settings/js')
-rw-r--r--settings/js/users/users.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/settings/js/users/users.js b/settings/js/users/users.js
index 0f72746ee83..86ed43d958e 100644
--- a/settings/js/users/users.js
+++ b/settings/js/users/users.js
@@ -707,4 +707,27 @@ $(document).ready(function () {
);
});
+ // Option to display/hide the "Storage location" column
+ $('#CheckboxStorageLocation').click(function() {
+ if ($('#CheckboxStorageLocation').is(':checked')) {
+ $("#headerStorageLocation").show();
+ $("#userlist td.storageLocation").show();
+ } else {
+ $("#headerStorageLocation").hide();
+ $("#userlist td.storageLocation").hide();
+ }
+ });
+ // Option to display/hide the "Last Login" column
+ $('#CheckboxLastLogin').click(function() {
+ if ($('#CheckboxLastLogin').is(':checked')) {
+ $("#headerLastLogin").show();
+ $("#userlist td.lastLogin").show();
+ } else {
+ $("#headerLastLogin").hide();
+ $("#userlist td.lastLogin").hide();
+ }
+ });
+
+
+
});