don't call disco_set if disco is not enabled

This commit is contained in:
Thomas NOËL 2013-04-02 11:03:12 +02:00
parent c2fc71df2e
commit 6b2de8f5cf
1 changed files with 2 additions and 2 deletions

View File

@ -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;
});