Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed bug when category is not provided

  • Loading branch information...
commit fbd493bc74d711d1e6f4358ad9d40a92559a3c24 1 parent c0298b0
@renyi renyi authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 agon_ratings/templates/agon_ratings/_script.html
View
6 agon_ratings/templates/agon_ratings/_script.html
@@ -26,8 +26,10 @@
url: "{{ post_url }}",
type: "POST",
data: {
- "rating": current_rating,
- "category": "{{ category }}"
+ "rating": current_rating
+ {% if category %}
+ ,"category": "{{ category }}"
+ {% endif %}
},
statusCode: {
403: function(jqXHR, textStatus, errorThrown) {

0 comments on commit fbd493b

Please sign in to comment.
Something went wrong with that request. Please try again.