fix: add form serialized data to the delete comment ajax form submit

Even if in fresh Plone there is no data, I'm in a case where I'm adding
'ajax' marker in the form to not render all the page (which is the case
here) and the render is not used at all except if the action do not
happens in ajax.
This commit is contained in:
JeanMichel FRANCOIS 2013-08-21 11:07:48 +02:00
parent 0d18a6dd57
commit 34bbd39829
2 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,8 @@ Changelog
- Rename CHANGES.txt to CHANGES.rst.
[timo]
- Fix ajax form submit for delete comment action: add 'data' to the request.
[toutpt]
2.2.8 (2013-08-20)
------------------

View File

@ -177,6 +177,7 @@
$.ajax({
type: 'POST',
url: form_url,
data: data,
context: $(trigger).parents(".comment"),
success: function (data) {
var comment = $(this);