Commit 07ed3e2f211bf9641d85005c340d32af5428eb40
1 parent
ed63bab0
Exists in
master
and in
22 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,7 +24,7 @@ | ||
| 24 | $('#report-abuse-submit-button').css('cursor', 'progress'); | 24 | $('#report-abuse-submit-button').css('cursor', 'progress'); |
| 25 | $.ajax({ | 25 | $.ajax({ |
| 26 | type: 'POST', | 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 | data: $(form).serialize(), | 28 | data: $(form).serialize(), |
| 29 | dataType: 'json', | 29 | dataType: 'json', |
| 30 | success: function(data, status, ajax){ | 30 | success: function(data, status, ajax){ |