提交 0123cd63 编写于 作者: NoSubject's avatar NoSubject

增加公文编辑器是否显示双页的配置

上级 989e17ee
...@@ -120,6 +120,16 @@ ...@@ -120,6 +120,16 @@
</td> </td>
</tr> </tr>
</table> </table>
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
<tr>
<td class="editTableTitle">双页显示:</td>
<td class="editTableValue">
<input class="editTableRadio" name="canDoublePage" text{($.textIndent!=='n')?'checked':''} type="radio" value="y"/>
<input class="editTableRadio" name="canDoublePage" text{($.textIndent=='n')?'checked':''} type="radio" value="n"/>
<div>是否允许双页显示</div>
</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable"> <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
<tr> <tr>
......
...@@ -1519,17 +1519,20 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor = new Cla ...@@ -1519,17 +1519,20 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor = new Cla
} }
} }
this.doublePageAction = new Element("div", {"styles": this.css.doc_toolbar_doublePage, "text": MWF.xApplication.process.Xform.LP.doublePage}).inject(this.toolbarNode); if (this.json.canDoublePage!=="n" && !layout.mobile){
this.doublePageAction.addEvent("click", function(){ this.doublePageAction = new Element("div", {"styles": this.css.doc_toolbar_doublePage, "text": MWF.xApplication.process.Xform.LP.doublePage}).inject(this.toolbarNode);
if (this.options.pageShow!=="double"){ this.doublePageAction.addEvent("click", function(){
this._doublePage(); if (this.options.pageShow!=="double"){
}else{ this._doublePage();
this.options.pageShow="single"; }else{
this.reload(); this.options.pageShow="single";
//this._singlePage(); this.reload();
} //this._singlePage();
}.bind(this)); }
if (layout.mobile) this.doublePageAction.hide(); }.bind(this));
//if (layout.mobile) this.doublePageAction.hide();
}
this.zoomActionArea = new Element("div", {"styles": {"float": "right", "margin-right": "10px"}}).inject(this.toolbarNode); this.zoomActionArea = new Element("div", {"styles": {"float": "right", "margin-right": "10px"}}).inject(this.toolbarNode);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册