mirror of
https://github.com/JonathanHerrewijnen/calibre-web.git
synced 2024-11-11 05:33:57 +00:00
Translate 10-based rating to 5-based
This commit is contained in:
parent
b6b5313f2d
commit
29f21b148b
@ -103,6 +103,10 @@ $(function () {
|
||||
}
|
||||
};
|
||||
|
||||
if (book.rating > 0) {
|
||||
book.rating /= 2;
|
||||
}
|
||||
|
||||
var $book = $(templates.bookResult(book));
|
||||
$book.find("img").on("click", function () {
|
||||
populateForm(book);
|
||||
|
Loading…
Reference in New Issue
Block a user