Comment.js 714 B

12345678910111213141516
  1. MWF.xDesktop.requireApp("process.Xform", "$Module", null, false);
  2. MWF.xDesktop.requireApp("cms.Xform", "widget.Comment", null, false);
  3. MWF.xApplication.cms.Xform.Comment = MWF.CMSComment = new Class({
  4. Extends: MWF.APP$Module,
  5. _loadUserInterface: function(){
  6. this.node.empty();
  7. this.node.setStyle("-webkit-user-select", "text");
  8. this.comment = new MWF.xApplication.cms.Xform.widget.Comment( this.form.app, this.node, {
  9. "documentId" : this.form.businessData.document.id,
  10. "countPerPage" : this.json.countPerPage || 10,
  11. "isAllowModified" : this.json.isAllowModified,
  12. "isAdmin" : this.form.app.isAdmin
  13. });
  14. this.comment.load();
  15. }
  16. });