Commit 07ed3e2f211bf9641d85005c340d32af5428eb40
1 parent
ed63bab0
Exists in
staging
and in
42 other branches
report-abuse: fix html parameter by converting it to json
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/views/profile/report_abuse.html.erb
| ... | ... | @@ -24,7 +24,7 @@ |
| 24 | 24 | $('#report-abuse-submit-button').css('cursor', 'progress'); |
| 25 | 25 | $.ajax({ |
| 26 | 26 | type: 'POST', |
| 27 | - url: <%= url_for({:controller => 'profile', :action => 'register_report', :profile => profile.identifier}) %>, | |
| 27 | + url: <%= url_for({:controller => 'profile', :action => 'register_report', :profile => profile.identifier}).to_json %>, | |
| 28 | 28 | data: $(form).serialize(), |
| 29 | 29 | dataType: 'json', |
| 30 | 30 | success: function(data, status, ajax){ | ... | ... |