Commit 29f21b14 authored by Jonathan Rehm's avatar Jonathan Rehm

Translate 10-based rating to 5-based

parent b6b5313f
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment