don't call disco_set if disco is not enabled
This commit is contained in:
parent
c2fc71df2e
commit
6b2de8f5cf
|
@ -39,7 +39,7 @@ function redirectTo(e) {
|
|||
}
|
||||
|
||||
function onIdPClick(e) {
|
||||
disco_set(e.target.entityid);
|
||||
if (typeof disco_set != 'undefined') disco_set(e.target.entityid);
|
||||
redirectLink = '/sso?entity_id=' + e.target.entityid;
|
||||
redirectTimeout = setTimeout(redirectTo, 2000);
|
||||
}
|
||||
|
@ -51,7 +51,7 @@ function noRedirect(e) {
|
|||
|
||||
$('a.idplink').click(function() {
|
||||
var a = $(this);
|
||||
disco_set(a.data('entityid'));
|
||||
if (typeof disco_set != 'undefined') disco_set(a.data('entityid'));
|
||||
setTimeout(function () { window.location.href = a.attr('href'); }, 2000);
|
||||
return false;
|
||||
});
|
||||
|
|
Reference in New Issue