diff --git a/o2web/source/x_component_process_FormDesigner/Module/Documenteditor/documenteditor.html b/o2web/source/x_component_process_FormDesigner/Module/Documenteditor/documenteditor.html
index d0fc91f60c1420e4b5e5b6873933f6d56a5a4534..978e96c610320641b1bd26080c6d38769128eff1 100644
--- a/o2web/source/x_component_process_FormDesigner/Module/Documenteditor/documenteditor.html
+++ b/o2web/source/x_component_process_FormDesigner/Module/Documenteditor/documenteditor.html
@@ -120,6 +120,16 @@
+
diff --git a/o2web/source/x_component_process_Xform/Documenteditor.js b/o2web/source/x_component_process_Xform/Documenteditor.js
index 24d831fb89d03635da81ef9101f39d7c7f1a999e..accdf0afefb2a6be9f4c37e07da81c2ae6c79870 100644
--- a/o2web/source/x_component_process_Xform/Documenteditor.js
+++ b/o2web/source/x_component_process_Xform/Documenteditor.js
@@ -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);