fix reply bug ("TypeError: long() argument must be a string or a number") in Chrome.

svn path=/plone.app.discussion/trunk/; revision=27535
This commit is contained in:
Timo Stollenwerk 2009-06-20 16:24:16 +00:00
parent e9f24cfa74
commit 4102fb6f6f

View File

@ -37,7 +37,7 @@ jq(document).ready(function() {
var reply_form = reply_div.find("form"); var reply_form = reply_div.find("form");
/* Add a hidden field with the id of the comment */ /* Add a hidden field with the id of the comment */
reply_form.append("<input type=\"hidden\" value=\"" + comment_id + "\" name=\"form.reply_to_comment_id\""); reply_form.append("<input type=\"hidden\" value=\"" + comment_id + "\" name=\"form.reply_to_comment_id\" />");
/* Change the form action to @@reply-to-comment */ /* Change the form action to @@reply-to-comment */
var old_action = reply_form.attr("action"); var old_action = reply_form.attr("action");