Hide and show after updating

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2016-10-25 15:46:24 +02:00 committed by Lukas Reschke
parent 2fd2e45e42
commit 47f9574302
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1
1 changed files with 10 additions and 4 deletions

View File

@ -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();
}
});
}
});