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>
[% 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>
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();
[% 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>
[% END %]
$(document).ready(function(){
- $(".moretoggle").click(function(){
+ $(".moretoggle").click(function(e){
+ e.preventDefault();
$(this).siblings(".collapsible-facet").toggle();
$(this).siblings(".moretoggle").toggle();
$(this).toggle();