Bug 14419: (QA follow-up) Restore the link styling

Test plan:
Look at Show more/less links in facets, in opac and staff client
--> without this patch they are pure text, no styling, no hand cursor
--> with this patch it is link, but continues to work as before

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Josef Moravec 2019-07-03 20:56:56 +00:00 committed by Martin Renvoize
parent 14e6375637
commit 0ff83a8f2c
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
4 changed files with 8 additions and 6 deletions

View File

@ -53,10 +53,10 @@
[% END %]
[% IF facets_loo.facets.size > 5 %]
<li class="moretoggle">
Show more
<a href="#"><strong>Show more</strong></a>
</li>
<li class="moretoggle" style="display:none">
Show less
<a href="#"><strong>Show less</strong></a>
</li>
[% END %]
</ul></li>

View File

@ -668,7 +668,8 @@
var Sticky;
$(document).ready(function() {
$(".moretoggle").click(function() {
$(".moretoggle").click(function(e) {
e.preventDefault();
$(this).siblings(".collapsible-facet").toggle();
$(this).siblings(".moretoggle").toggle();
$(this).toggle();

View File

@ -62,10 +62,10 @@
[% END %]
[% IF facets_loo.facets.size > 5 %]
<li class="moretoggle">
Show more
<a href="#"><strong>Show more</strong></a>
</li>
<li class="moretoggle" style="display:none">
Show less
<a href="#"><strong>Show less</strong></a>
</li>
[% END %]
</ul>

View File

@ -741,7 +741,8 @@ function highlightOn() {
[% END %]
$(document).ready(function(){
$(".moretoggle").click(function(){
$(".moretoggle").click(function(e){
e.preventDefault();
$(this).siblings(".collapsible-facet").toggle();
$(this).siblings(".moretoggle").toggle();
$(this).toggle();