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. - Rename CHANGES.txt to CHANGES.rst.
[timo] [timo]
- Fix ajax form submit for delete comment action: add 'data' to the request.
[toutpt]
2.2.8 (2013-08-20) 2.2.8 (2013-08-20)
------------------ ------------------

View File

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