Use callback

Otherwise the page is already reloaded while the appsettings are not yet stored.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
Lukas Reschke 2017-09-18 11:20:44 +02:00
parent 00c87f4f81
commit 6ac3ab47ca
No known key found for this signature in database
GPG key ID: B9F6980CF6E759B1

View file

@ -11,8 +11,7 @@
return;
}
OC.AppConfig.setValue('user_saml', 'type', 'environment-variable');
location.reload();
OCP.AppConfig.setValue('user_saml', 'type', 'environment-variable', {success: function() {location.reload();}});
},
chooseSaml: function() {
@ -21,8 +20,7 @@
return;
}
OC.AppConfig.setValue('user_saml', 'type', 'saml');
location.reload();
OCP.AppConfig.setValue('user_saml', 'type', 'saml', {success: function() {location.reload();}});
},
setSamlConfigValue: function(category, setting, value) {