diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2017-09-18 12:20:44 +0300 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2017-09-18 12:20:44 +0300 |
commit | 6ac3ab47cafdf574d021dcc4aff2a055f67f0aef (patch) | |
tree | 9287038d3de919a0147b65b29e2a51cdeaddb89d /js/admin.js | |
parent | 00c87f4f8159e26336761f36f503a74277cf7e0f (diff) |
Use callback
Otherwise the page is already reloaded while the appsettings are not yet stored.
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'js/admin.js')
-rw-r--r-- | js/admin.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/js/admin.js b/js/admin.js index e0d7f6d6..475a5651 100644 --- a/js/admin.js +++ b/js/admin.js @@ -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) { |