fix publish comment. remove ajax functions for now.

svn path=/plone.app.discussion/trunk/; revision=27864
This commit is contained in:
Timo Stollenwerk
2009-07-07 08:00:41 +00:00
parent 54f6c09c7b
commit bed1b420ba
3 changed files with 23 additions and 127 deletions
@@ -80,11 +80,14 @@ jq(document).ready(function() {
/*****************************************************************
* Remove comment.
*****************************************************************/
/*
jq("input[name='form.button.DeleteComment']").click(function(e){
e.preventDefault();
var form = jq(this).parent();
var target = jq(form).attr("action");
var comment = jq(form).parent()
var comment = jq(form).parent();
var reply_comments = jq(comment).find("~ .comment:not(.replyTreeLevel0 ~ div)");
reply_comments.css("background", "red");
jq.ajax({
type: "GET",
url: target,
@@ -99,10 +102,12 @@ jq(document).ready(function() {
},
});
});
*/
/*****************************************************************
* Publish comment.
*****************************************************************/
/*
jq("input[name='form.button.PublishComment']").click(function(e){
e.preventDefault();
var button = jq(this);
@@ -123,4 +128,5 @@ jq(document).ready(function() {
},
});
});
*/
});