mirror of
https://github.com/janeczku/calibre-web
synced 2025-12-02 22:38:06 +00:00
styling and javascript for hiding authors
This commit is contained in:
@@ -204,4 +204,12 @@ $(function() {
|
||||
$(window).resize(function() {
|
||||
$(".discover .row").isotope("layout");
|
||||
});
|
||||
|
||||
$(".author-expand").click(function() {
|
||||
$(this).parent().find('a.author-name').slice($(this).data("authors-max")).toggle();
|
||||
$(this).parent().find('span.author-hidden-divider').toggle();
|
||||
$(this).html()==$(this).data("collapse-caption")? $(this).html('(...)'):$(this).html($(this).data("collapse-caption"));
|
||||
$(".discover .row").isotope("layout");
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user