提交 092cfc56 编写于 作者: NoSubject's avatar NoSubject

Merge branch 'fix/documenteditor_double_page' into 'release'

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

See merge request o2oa/o2oa!1694
......@@ -120,6 +120,16 @@
</td>
</tr>
</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">
<tr>
......
......@@ -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);
this.doublePageAction.addEvent("click", function(){
if (this.options.pageShow!=="double"){
this._doublePage();
}else{
this.options.pageShow="single";
this.reload();
//this._singlePage();
}
}.bind(this));
if (layout.mobile) this.doublePageAction.hide();
if (this.json.canDoublePage!=="n" && !layout.mobile){
this.doublePageAction = new Element("div", {"styles": this.css.doc_toolbar_doublePage, "text": MWF.xApplication.process.Xform.LP.doublePage}).inject(this.toolbarNode);
this.doublePageAction.addEvent("click", function(){
if (this.options.pageShow!=="double"){
this._doublePage();
}else{
this.options.pageShow="single";
this.reload();
//this._singlePage();
}
}.bind(this));
//if (layout.mobile) this.doublePageAction.hide();
}
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.
先完成此消息的编辑!
想要评论请 注册