allow to show the full text of a comment in the moderation view.

svn path=/plone.app.discussion/trunk/; revision=33400
This commit is contained in:
Timo Stollenwerk
2010-01-25 11:43:29 +00:00
parent 489afd8636
commit 4fa3f476d4
3 changed files with 34 additions and 1 deletions
@@ -103,4 +103,25 @@ jq(document).ready(function() {
}
});
/*****************************************************************
* Show full text of a comment.
*****************************************************************/
jq(".show-full-comment-text").click(function(e) {
e.preventDefault();
var target = jq(this).attr("href");
var td = jq(this).parent();
jq.ajax({
type: "GET",
url: target,
data: "",
success: function(data){
// show full text
td.replaceWith("<td>" + data + "</td>");
},
error: function(msg){
alert("Error getting full comment text:" + target);
}
});
});
});