Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit 37f14d4

Browse files
committed
Fixed bugs in disco-tpl.php
* Fixed the bugs in disco-tpl.php that tagged metaentry (IdP with tag social or preferred) wasn't autofocus * Added possibility to use 'ENTER' key to continue on 'Sign in usind other identity' button
1 parent a465f47 commit 37f14d4

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
All notable changes to this project will be documented in this file.
33

44
## [Unreleased]
5+
#### Fixed
6+
- Fixed bugs in disco-tpl.php
57

68
## [v3.4.0]
79
#### Changed

themes/perun/perun/disco-tpl.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@
129129

130130
echo getOr();
131131

132-
echo '<span id="showEntries" class="btn btn-block btn-default btn-lg">' .
133-
$this->t('{perun:disco:sign_with_other_institution}') .'</span>' ;
132+
echo '<a id="showEntries" class="metaentry btn btn-block btn-default btn-lg" href="#">' .
133+
$this->t('{perun:disco:sign_with_other_institution}') .'</a>' ;
134134
echo '<div id="entries" style="display: none">';
135135
}
136136

@@ -267,7 +267,7 @@ function showTaggedEntry($t, $metadata, $showSignInWith = false)
267267
$bck = $metadata['color'];
268268
}
269269

270-
$html = '<a class="btn btn-block tagged" href="' . $t->getContinueUrl($metadata['entityid']) .
270+
$html = '<a class="metaentry btn btn-block tagged" href="' . $t->getContinueUrl($metadata['entityid']) .
271271
'" style="background: ' . $bck . '">';
272272

273273
$html .= '<img src="' . $metadata['icon'] . '">';

0 commit comments

Comments
 (0)