]> git.openstreetmap.org Git - osqa.git/commitdiff
OSQA-697, don't pass the CSRF token to the AJAX request when posting a new comment
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Thu, 23 Jun 2011 23:07:06 +0000 (23:07 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Thu, 23 Jun 2011 23:07:06 +0000 (23:07 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1071 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/skins/default/media/js/osqa.main.js

index ebc9cf072415f83d9169977b192694fc5a246827..993407b769e1feda0502122e3cee42f213a29910 100644 (file)
@@ -572,7 +572,7 @@ $(function() {
                 }\r
 \r
                 start_command();\r
-                $.post($form.attr('action'), post_data, function(data) {\r
+                $.post($form.attr('action'), $form.serialize(), function(data) {\r
                     process_ajax_response(data, evt, function(error) {\r
                         if (!error) {\r
                             cleanup_form();\r