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

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