diff --git a/docs/HISTORY.txt b/docs/HISTORY.txt index 326f452..a577649 100644 --- a/docs/HISTORY.txt +++ b/docs/HISTORY.txt @@ -1,6 +1,12 @@ Changelog ========= +1.0b3 (XXXX-XX-XX) +------------------ + +* Bugfix for #2281226: Moderation View: Comments disappear when hitting the 'Apply' button without choosing a bulk action. +* Allow to show the full text of a comment in the moderation view. + 1.0b2 (2010-01-22) ------------------ diff --git a/plone/app/discussion/browser/javascripts/moderation.js b/plone/app/discussion/browser/javascripts/moderation.js index 69325da..8b05bb5 100644 --- a/plone/app/discussion/browser/javascripts/moderation.js +++ b/plone/app/discussion/browser/javascripts/moderation.js @@ -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("