diff options
author | Joas Schilling <coding@schilljs.com> | 2016-10-25 15:46:24 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-11-18 12:10:50 +0100 |
commit | 47f9574302ac30fc100ced10b978c49f1eea81c7 (patch) | |
tree | ed5f8ad2fb10b879c083c06ed7856d5c91788e3c /settings/js/users | |
parent | 2fd2e45e428b24f16b7724b7a31d660ba67d2ef1 (diff) | |
download | nextcloud-server-47f9574302ac30fc100ced10b978c49f1eea81c7.tar.gz nextcloud-server-47f9574302ac30fc100ced10b978c49f1eea81c7.zip |
Hide and show after updating
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'settings/js/users')
-rw-r--r-- | settings/js/users/users.js | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/settings/js/users/users.js b/settings/js/users/users.js index 7f23f2dad3f..e96f6dd6140 100644 --- a/settings/js/users/users.js +++ b/settings/js/users/users.js @@ -914,11 +914,17 @@ $(document).ready(function () { // Option to display/hide the "Storage location" column $('#CheckboxStorageLocation').click(function() { if ($('#CheckboxStorageLocation').is(':checked')) { - $("#userlist .storageLocation").show(); - OCP.AppConfig.setValue('core', 'umgmt_show_storage_location', 'true'); + OCP.AppConfig.setValue('core', 'umgmt_show_storage_location', 'true', { + success: function () { + $("#userlist .storageLocation").show(); + } + }); } else { - $("#userlist .storageLocation").hide(); - OCP.AppConfig.setValue('core', 'umgmt_show_storage_location', 'false'); + OCP.AppConfig.setValue('core', 'umgmt_show_storage_location', 'false', { + success: function () { + $("#userlist .storageLocation").hide(); + } + }); } }); |