mirror of
https://github.com/netzbegruenung/user_saml.git
synced 2024-04-26 22:34:53 +02:00
fix select idp combobox so that it also works with chromium
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
parent
65d3cf6e88
commit
a27f7a04a8
|
@ -1,6 +1,6 @@
|
|||
$(window).load(function() {
|
||||
|
||||
$(document).on('click', 'option', function() {
|
||||
$(".login-chose-saml-idp").change(function() {
|
||||
var target = $(this).val();
|
||||
if (target !== '') {
|
||||
window.location.href = target;
|
||||
|
|
|
@ -12,7 +12,7 @@ script('user_saml', 'selectUserBackEnd');
|
|||
|
||||
<?php if($_['useCombobox']) { ?>
|
||||
|
||||
<select id="av_mode" name="avMode">
|
||||
<select class="login-chose-saml-idp" id="av_mode" name="avMode">
|
||||
<option value=""><?php p($l->t('Choose a authentication provider')); ?></option>
|
||||
<?php foreach ($_['loginUrls']['ssoLogin'] as $idp) { ?>
|
||||
<option value="<?php p($idp['url']); ?>"><?php p($idp['display-name']); ?></option>
|
||||
|
|
Loading…
Reference in a new issue