From 823ada74915463c685adaf34725ab7b7e95b5663 Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Thu, 4 Nov 2010 14:42:32 +0000 Subject: [PATCH] Remove AJAX comment deletion binding. This function relies on the nextUntil() selector introduced by jQuery 1.4 and therefore breaks in Plone 3 (that currently uses jQuery 1.3.2). svn path=/plone.app.discussion/trunk/; revision=45188 --- CHANGES.txt | 9 +++++++++ plone/app/discussion/browser/javascripts/comments.js | 5 +++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 3144ffe..75504b5 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,6 +1,15 @@ Changelog ========= +1.0b12 (2010-11-04) +------------------- + +- Remove AJAX comment deletion binding. This function relies on the nextUntil() + selector introduced by jQuery 1.4 and therefore breaks in Plone 3 + (that currently uses jQuery 1.3.2). + [timo] + + 1.0b11 (2010-11-03) ------------------- diff --git a/plone/app/discussion/browser/javascripts/comments.js b/plone/app/discussion/browser/javascripts/comments.js index bb7335b..e724701 100644 --- a/plone/app/discussion/browser/javascripts/comments.js +++ b/plone/app/discussion/browser/javascripts/comments.js @@ -168,7 +168,8 @@ /********************************************************************** * Delete a comment and its answers. **********************************************************************/ - $("input[name='form.button.DeleteComment']").live('click', function () { + /* + $("input[name='form.button.DeleteComment']").live('click', function () { var trigger = this; var form = $(this).parents("form"); var data = $(form).serialize(); @@ -209,7 +210,7 @@ } }); return false; - }); + });*/ /********************************************************************** * By default, hide the reply and the cancel button for the regular add