2010-08-27 22:52:38 +02:00
|
|
|
===============================
|
|
|
|
plone.app.discussion Javascript
|
|
|
|
===============================
|
|
|
|
|
|
|
|
This document contains a description of how the plone.app.discussion javascript
|
|
|
|
code works.
|
|
|
|
|
|
|
|
HTML Structure
|
|
|
|
--------------
|
|
|
|
|
|
|
|
The "discussion" div contains all comments that have been posted to a specific
|
|
|
|
content object. Each comment div has a unique id::
|
|
|
|
|
|
|
|
<div class="discussion">
|
|
|
|
<div class="comment" id="1282720906349675">
|
|
|
|
<h3 class="commentTitle"></h3>
|
|
|
|
<div class="documentByLine"></div>
|
|
|
|
<div class="commentBody"> </div>
|
|
|
|
<div class="commentActions">
|
2012-11-04 17:25:25 +01:00
|
|
|
<button class="reply-to-comment-button">Reply</button>
|
2010-08-27 22:52:38 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
The comment form is rendered inside a "commenting" div::
|
|
|
|
|
|
|
|
<div id="commenting" class="reply">
|
|
|
|
<fieldset>
|
|
|
|
<legend i18n:translate="label_add_comment">Add comment</legend>
|
|
|
|
<p>
|
|
|
|
You can add a comment by filling out the form below. Plain text
|
|
|
|
formatting.
|
|
|
|
</p>
|
|
|
|
<form>
|
|
|
|
<div id="formfield-form-widgets-in_reply_to">
|
|
|
|
<input id="form-widgets-in_reply_to"
|
|
|
|
name="form.widgets.in_reply_to" value=
|
2012-11-04 17:25:25 +01:00
|
|
|
type="hidden"
|
2010-08-27 22:52:38 +02:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</fieldset>
|
|
|
|
</div>
|