Skip to content

Commit

Permalink
fix(UI): auth provider picker did not react
Browse files Browse the repository at this point in the history
- also removes jQuery usage

Signed-off-by: Arthur Schiwon <[email protected]>
  • Loading branch information
blizzz committed Mar 11, 2024
1 parent c357d5c commit b39e693
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 3 additions & 5 deletions js/selectUserBackEnd.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
$(window).load(function() {

$(".login-chose-saml-idp").change(function() {
var target = $(this).val();
document.addEventListener("DOMContentLoaded", (event) => {
document.getElementsByClassName("login-chose-saml-idp")[0].addEventListener('change', function (event) {
var target = this.value;
if (target !== '') {
window.location.href = target;
}
});

});
5 changes: 4 additions & 1 deletion templates/selectUserBackEnd.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<?php

use OCP\Util;

style('user_saml', 'selectUserBackEnd');
script('user_saml', 'selectUserBackEnd');
Util::addScript('user_saml', 'selectUserBackEnd');

/** @var array $_ */
/** @var $l \OCP\IL10N */
Expand Down

0 comments on commit b39e693

Please sign in to comment.