Rate function in javascript
This commit is contained in:
parent
560c5fd2f7
commit
458e71a41e
3 changed files with 19 additions and 6 deletions
|
@ -2,7 +2,7 @@
|
|||
<span class="hidden-text">Leave a rating</span>
|
||||
<div class="stars rate-stars">
|
||||
{% for i in '12345'|make_list %}
|
||||
<form name="rate" action="/rate/" method="POST" onsubmit="interact(event)">
|
||||
<form name="rate" action="/rate/" method="POST" onsubmit="return rate(event)">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="book" value="{{ book.fedireads_key }}"></input>
|
||||
<input type="hidden" name="rating" value="{{ forloop.counter }}"></input>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue