diff -r 8ec189cc214d -r b2e0186daa5b src/cm/media/js/client/c_icomment.js --- a/src/cm/media/js/client/c_icomment.js Wed Mar 27 17:51:18 2013 +0100 +++ b/src/cm/media/js/client/c_icomment.js Tue Jun 25 11:56:01 2013 +0200 @@ -326,6 +326,17 @@ if (comment.tags == "") newTagNode.addClass('displaynone') ; + // CATEGORY + var newCatNode = CY.Node.create('
' + gettext("category") + ': ' + categories[comment.category] + '
') ; + var prevCatNode = boundingBoxNode.query(".c-cat") ; + if (prevCatNode == null) + boundingBoxNode.query('.icomment-header').appendChild(newCatNode) ; + else + prevCatNode.get('parentNode').replaceChild(newCatNode, prevCatNode) ; + // NO CATEGORY ? + if (comment.category == 0) + newCatNode.addClass('displaynone') ; + // CONTENT var newContentNode = CY.Node.create('' + comment.content_html + '') ; var prevContentNode = boundingBoxNode.query(".c-content") ;