Fix book sorting

This commit is contained in:
Sébastien Lucas 2013-05-16 17:51:09 +02:00
parent 0486dfd03b
commit 3e7c6deefb

View file

@ -73,7 +73,7 @@
}); });
$("#sort").click(function(){ $("#sort").click(function(){
$('.book').sortElements(function(a, b){ $('.books').sortElements(function(a, b){
var test = 1; var test = 1;
if ($("#sortorder").val() == "desc") if ($("#sortorder").val() == "desc")
{ {
@ -81,7 +81,6 @@
} }
return $(a).find ("." + $("#sortchoice").val()).text() > $(b).find ("." + $("#sortchoice").val()).text() ? test : -test; return $(a).find ("." + $("#sortchoice").val()).text() > $(b).find ("." + $("#sortchoice").val()).text() ? test : -test;
}); });
$("#search").slideUp();
}); });
<?php if ($config['cops_use_fancyapps'] == 1) { ?> <?php if ($config['cops_use_fancyapps'] == 1) { ?>
@ -251,23 +250,23 @@
</h2> </h2>
<a class="fancyabout" href="<?php echo $entry->book->getDetailUrl () ?>"> <a class="fancyabout" href="<?php echo $entry->book->getDetailUrl () ?>">
<div class="fullclickpopup"> <div class="fullclickpopup">
<h2><?php echo htmlspecialchars ($entry->title) ?> <h2><span class="st"><?php echo htmlspecialchars ($entry->title) ?></span>
<?php <?php
if ($entry->book->getPubDate() != "") if ($entry->book->getPubDate() != "")
{ {
?> ?>
(<?php echo $entry->book->getPubDate() ?>) <span class="sp">(<?php echo $entry->book->getPubDate() ?>)</span>
<?php <?php
} }
?> ?>
<?php echo $entry->book->getRating () ?></h2> <span class="sr"><?php echo $entry->book->getRating () ?></span></h2>
<h4><?php echo localize("authors.title") . " : </h4>" . htmlspecialchars ($entry->book->getAuthorsName ()) ?><br /> <h4><?php echo localize("authors.title") . " : " ?></h4><span class="sa"><?php echo htmlspecialchars ($entry->book->getAuthorsName ()) ?></span><br />
<h4><?php echo localize("tags.title") . " : </h4>" . htmlspecialchars ($entry->book->getTagsName ()) ?><br /> <h4><?php echo localize("tags.title") . " : </h4>" . htmlspecialchars ($entry->book->getTagsName ()) ?><br />
<?php <?php
$serie = $entry->book->getSerie (); $serie = $entry->book->getSerie ();
if (!is_null ($serie)) { if (!is_null ($serie)) {
?> ?>
<h4><?php echo localize("series.title") . " :</h4> " . htmlspecialchars ($serie->name) . " (" . $entry->book->seriesIndex . ")" ?><br /> <h4><?php echo localize("series.title") . " : " ?></h4><span class="ss"><?php echo htmlspecialchars ($serie->name) . " (" . $entry->book->seriesIndex . ")" ?></span><br />
<?php <?php
} }
?></div></a> ?></div></a>