summaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2015-09-25 06:24:08 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2015-09-25 13:35:12 +0200
commitf6cd7362cdd738b273f71b6e72156391f9a80361 (patch)
tree2b3f0f4679e42e67aa8310872ed577140b43297c /settings/js
parent57b2778053f46f8a2fd1f29d8634ffb7f109fcb6 (diff)
downloadnextcloud-server-f6cd7362cdd738b273f71b6e72156391f9a80361.tar.gz
nextcloud-server-f6cd7362cdd738b273f71b6e72156391f9a80361.zip
Save the settings in the user management page
Store the setting in the user managerment page (e.g. show e-mail address). Fixes #12727
Diffstat (limited to 'settings/js')
-rw-r--r--settings/js/users/users.js29
1 files changed, 29 insertions, 0 deletions
diff --git a/settings/js/users/users.js b/settings/js/users/users.js
index 5b12366ad40..47d63c11b95 100644
--- a/settings/js/users/users.js
+++ b/settings/js/users/users.js
@@ -813,44 +813,73 @@ $(document).ready(function () {
});
});
+ if ($('#CheckboxStorageLocation').is(':checked')) {
+ $("#userlist .storageLocation").show();
+ }
// Option to display/hide the "Storage location" column
$('#CheckboxStorageLocation').click(function() {
if ($('#CheckboxStorageLocation').is(':checked')) {
$("#userlist .storageLocation").show();
+ OC.AppConfig.setValue('core', 'umgmt_show_storage_location', 'true');
} else {
$("#userlist .storageLocation").hide();
+ OC.AppConfig.setValue('core', 'umgmt_show_storage_location', 'false');
}
});
+
+ if ($('#CheckboxLastLogin').is(':checked')) {
+ $("#userlist .lastLogin").show();
+ }
// Option to display/hide the "Last Login" column
$('#CheckboxLastLogin').click(function() {
if ($('#CheckboxLastLogin').is(':checked')) {
$("#userlist .lastLogin").show();
+ OC.AppConfig.setValue('core', 'umgmt_show_last_login', 'true');
} else {
$("#userlist .lastLogin").hide();
+ OC.AppConfig.setValue('core', 'umgmt_show_last_login', 'false');
}
});
+
+ if ($('#CheckboxEmailAddress').is(':checked')) {
+ $("#userlist .mailAddress").show();
+ }
// Option to display/hide the "Mail Address" column
$('#CheckboxEmailAddress').click(function() {
if ($('#CheckboxEmailAddress').is(':checked')) {
$("#userlist .mailAddress").show();
+ OC.AppConfig.setValue('core', 'umgmt_show_email', 'true');
} else {
$("#userlist .mailAddress").hide();
+ OC.AppConfig.setValue('core', 'umgmt_show_email', 'false');
}
});
+
+ if ($('#CheckboxUserBackend').is(':checked')) {
+ $("#userlist .userBackend").show();
+ }
// Option to display/hide the "User Backend" column
$('#CheckboxUserBackend').click(function() {
if ($('#CheckboxUserBackend').is(':checked')) {
$("#userlist .userBackend").show();
+ OC.AppConfig.setValue('core', 'umgmt_show_backend', 'true');
} else {
$("#userlist .userBackend").hide();
+ OC.AppConfig.setValue('core', 'umgmt_show_backend', 'false');
}
});
+
+ if ($('#CheckboxMailOnUserCreate').is(':checked')) {
+ $("#newemail").show();
+ }
// Option to display/hide the "E-Mail" input field
$('#CheckboxMailOnUserCreate').click(function() {
if ($('#CheckboxMailOnUserCreate').is(':checked')) {
$("#newemail").show();
+ OC.AppConfig.setValue('core', 'umgmt_send_email', 'true');
} else {
$("#newemail").hide();
+ OC.AppConfig.setValue('core', 'umgmt_send_email', 'false');
}
});