application.ptComments.scripts.loadJQuery();
application.ptComments.scripts.loadJQueryUI();
application.ptComments.scripts.loadADFLightbox();
// Render each time the page is refreshed since a new comment may have be added
request.element.isStatic = 0;
// Set the Form ID
commentsFormID = application.ptcomments.getCommentsFormID();
// get the items
items = attributes.elementInfo.elementData.propertyValues;
// Make sure the comments structure exists to post comments
if ( !StructKeyExists(request,"comments") )
request.comments = StructNew();
if ( !StructKeyExists(request.comments,"contentDataPageID") )
request.comments.contentDataPageID = request.page.id;
//WriteOutput("commentsFormID: " & commentsFormID & " ");
//WriteOutput("contentDataPageID: " & request.comments.contentDataPageID & " ");
// Set the flag to render the action links for the comments
renderActionLinks = false;
if ( request.renderState.renderMode NEQ "read" )
renderActionLinks = true;
application.ADF.scripts.addFooterJS(commentsListJS,"TERTIARY");