Only run if no type is defined

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
Lukas Reschke 2017-09-18 11:26:25 +02:00
parent 1338ae13cd
commit 4bbeb4709b
No known key found for this signature in database
GPG key ID: B9F6980CF6E759B1

View file

@ -57,11 +57,15 @@ $(function() {
$('#user-saml-choose-saml').click(function(e) {
e.preventDefault();
OCA.User_SAML.Admin.chooseSaml();
if(type === '') {
OCA.User_SAML.Admin.chooseSaml();
}
});
$('#user-saml-choose-env').click(function(e) {
e.preventDefault();
OCA.User_SAML.Admin.chooseEnv();
if(type === '') {
OCA.User_SAML.Admin.chooseEnv();
}
});
// Enable tabs