Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/user_saml.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-09-18 12:20:44 +0300
committerLukas Reschke <lukas@statuscode.ch>2017-09-18 12:20:44 +0300
commit6ac3ab47cafdf574d021dcc4aff2a055f67f0aef (patch)
tree9287038d3de919a0147b65b29e2a51cdeaddb89d /js/admin.js
parent00c87f4f8159e26336761f36f503a74277cf7e0f (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.js6
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) {