Translate 10-based rating to 5-based

This commit is contained in:
Jonathan Rehm 2017-09-11 09:58:39 -07:00
parent b6b5313f2d
commit 29f21b148b

View File

@ -103,6 +103,10 @@ $(function () {
} }
}; };
if (book.rating > 0) {
book.rating /= 2;
}
var $book = $(templates.bookResult(book)); var $book = $(templates.bookResult(book));
$book.find("img").on("click", function () { $book.find("img").on("click", function () {
populateForm(book); populateForm(book);