disco: corrections...

This commit is contained in:
Thomas NOËL 2012-07-11 18:13:55 +02:00
parent c94fc81d36
commit 6f399c6407
1 changed files with 4 additions and 4 deletions

View File

@ -16,11 +16,11 @@
<div id="authbuttons">
Choisissez votre établissement&nbsp;:<br /><br />
{% if not default_idp %}
{% if default_idp %}
<a class="bigbutton" id="default-idp" title="{{ default_idp.name }}" href="/sso?entity_id={{ default_idp.entity_id|urlfullencode }}">{{ default_idp.name }}</a>
<a class="bigbutton" id="other-idps" href="#" onclick="$('#popup').show().modal()">Autres établissements</a>
{% else %}
<a class="bigbutton" id="default-idp" title="" href="#">IdP par défaut</a>
<a class="bigbutton" id="default-idp" title="" href="#" style="display: none;"></a>
<a class="bigbutton" id="other-idps" href="#" onclick="$('#popup').show().modal()">Liste des établissements</a>
{% endif %}
</div> <!-- #authbuttons -->
@ -75,13 +75,13 @@ Choisissez votre établissement&nbsp;:<br /><br />
}
$(document).ready(function() {
query()
query();
});
$('.idp-link').click(function () {
var a = $(this);
set(a.data('idp'));
setTimeout(function () { window.location.href = a.attr('href'); }, 3000)
setTimeout(function () { window.location.href = a.attr('href'); }, 3000);
return false;
});