diff options
Diffstat (limited to 'settings')
-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(); + } + }); } }); |