提交 fa67362e 编写于 作者: U unknown

增加CMS评论的发布选项

上级 1113bca6
......@@ -25,11 +25,18 @@
</tr>
<tr>
<td class="editTableValue" colspan="2">
<b>后允许修改:</b>
<input class="editTableRadio" name="isAllowModified" text{($.isAllowModified==true)?'checked':''} type="radio" value="true"/>
<b>后允许修改:</b>
<input class="editTableRadio" name="isAllowModified" text{($.isAllowModified!=false)?'checked':''} type="radio" value="true"/>
<input class="editTableRadio" name="isAllowModified" text{($.isAllowModified==false)?'checked':''} type="radio" value="false"/>
</td>
</tr>
<tr>
<td class="editTableValue" colspan="2">
<b>允许发表评论:</b>
<input class="editTableRadio" name="isAllowPublish" text{($.isAllowPublish!=false)?'checked':''} type="radio" value="true"/>
<input class="editTableRadio" name="isAllowPublish" text{($.isAllowPublish==false)?'checked':''} type="radio" value="false"/>
</td>
</tr>
</table>
<!--<div class="MWFMaplist" name="styles" title="样式"></div>-->
......
......@@ -25,6 +25,7 @@ MWF.xApplication.cms.Xform.Comment = MWF.CMSComment = new Class({
"documentId" : this.form.businessData.document.id,
"countPerPage" : this.json.countPerPage || 10,
"isAllowModified" : this.json.isAllowModified,
"isAllowPublish" : this.json.isAllowPublish,
"isAdmin" : this.form.app.isAdmin,
"editorProperties" : config
});
......
......@@ -8,7 +8,8 @@ var O2CMSComment = MWF.xApplication.cms.Xform.widget.Comment = new Class({
"style": "simple",
"documentId" : "",
"anonymousAccess" : false,
"countPerPage" : 10
"countPerPage" : 10,
"isAllowPublish" : true
},
initialize: function (app, node, options) {
this.setOptions(options);
......@@ -44,7 +45,9 @@ var O2CMSComment = MWF.xApplication.cms.Xform.widget.Comment = new Class({
this.loadContent();
//this.loadElementList();
//this.loadBottom();
this.loadEditor();
if( this.options.isAllowPublish !== false ){
this.loadEditor();
}
},
loadTitle : function(){
this.titleNode = new Element("div", {"styles": this.css.titleNode, "text": this.lp.commentTitle}).inject(this.container);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册