mirror of
				https://github.com/janeczku/calibre-web
				synced 2025-10-31 15:23:02 +00:00 
			
		
		
		
	Translate 10-based rating to 5-based
This commit is contained in:
		| @@ -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); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jonathan Rehm
					Jonathan Rehm