summaryrefslogtreecommitdiffstats
path: root/virtualenv/pffedportal
diff options
context:
space:
mode:
authorThomas NOEL <tnoel@entrouvert.com>2013-04-02 09:03:12 (GMT)
committerThomas NOEL <tnoel@entrouvert.com>2013-04-02 09:03:12 (GMT)
commit6b2de8f5cfb58160488e2caf71d0afc3ace3ab85 (patch)
tree8c5c39704b58bd42db744e6f2196894ab27fbec6 /virtualenv/pffedportal
parentc2fc71df2ec845bc72c40cc6e3ecca7291f3ed41 (diff)
downloadunivnautes-old-6b2de8f5cfb58160488e2caf71d0afc3ace3ab85.zip
univnautes-old-6b2de8f5cfb58160488e2caf71d0afc3ace3ab85.tar.gz
univnautes-old-6b2de8f5cfb58160488e2caf71d0afc3ace3ab85.tar.bz2
don't call disco_set if disco is not enabled
Diffstat (limited to 'virtualenv/pffedportal')
-rw-r--r--virtualenv/pffedportal/media/univnautes/js/univnautes.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/virtualenv/pffedportal/media/univnautes/js/univnautes.js b/virtualenv/pffedportal/media/univnautes/js/univnautes.js
index 4ab7ed5..80dddac 100644
--- a/virtualenv/pffedportal/media/univnautes/js/univnautes.js
+++ b/virtualenv/pffedportal/media/univnautes/js/univnautes.js
@@ -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;
});