Permalink
Browse files

Merge pull request #1350 from jdlrobson/1349

Fix JS on subject page (1349)
  • Loading branch information...
mekarpeles committed Oct 16, 2018
2 parents 7195f18 + 40e9323 commit 4d89137a4158a4718850e3dc4dfec47a899626f9
Showing with 16 additions and 0 deletions.
  1. +16 −0 openlibrary/templates/lib/covers.html
@@ -30,6 +30,22 @@
updateBookAvailability('#coversCarousel li ');
});
}
window.q.push(function() {
// setup the carousel for subjects page
page.renderCovers = render_page;
if ( page.displayCovers ) {
page.displayCovers(0);
}
if ( carousels ) {
carousels();
}
if ( carouselSetup ) {
carouselSetup(loadCoverCarousels);
\$('.jcarousel-next').attr('title','View the next editions').append('<h4 class="shift"><a href="#" onclick="return false;">View the next editions</a></h4>');
\$('.jcarousel-prev').attr('title','View the previous editions').append('<h4 class="shift"><a href="#" onclick="return false;">View the previous editions</a></h4>');
}
});
//-->
</script>

0 comments on commit 4d89137

Please sign in to comment.