|
|
@@ -1678,6 +1678,7 @@ MWF.xApplication.process.Xform.Form = MWF.APPForm = new Class({
|
|
|
},
|
|
|
|
|
|
processWork: function () {
|
|
|
+ var _self = this;
|
|
|
if (!this.businessData.work.startTime) {
|
|
|
this.startDraftProcess();
|
|
|
} else {
|
|
|
@@ -1717,15 +1718,18 @@ MWF.xApplication.process.Xform.Form = MWF.APPForm = new Class({
|
|
|
});
|
|
|
var s = dlg.setContentSize();
|
|
|
if (dlg.content.getStyle("overflow-y") === "auto" && dlg.content.getStyle("overflow-x") !== "auto") {
|
|
|
- dlg.node.setStyle("width", dlg.node.getStyle("width").toInt() + 20 + "px");
|
|
|
- dlg.content.setStyle("width", dlg.content.getStyle("width").toInt() + 20 + "px");
|
|
|
+ var paddingRight = (dlg.content.getStyle("padding-right").toInt() || 0 );
|
|
|
+ if( paddingRight < 20 ){
|
|
|
+ dlg.node.setStyle("width", dlg.node.getStyle("width").toInt() + 20 + "px");
|
|
|
+ dlg.content.setStyle("width", dlg.content.getStyle("width").toInt() + 20 + "px");
|
|
|
+ }
|
|
|
}
|
|
|
if (!notRecenter) dlg.reCenter();
|
|
|
}
|
|
|
|
|
|
//var node = new Element("div", {"styles": this.css.rollbackAreaNode});
|
|
|
var processNode = new Element("div", { "styles": this.app.css.processNode_Area }).inject(this.node);
|
|
|
- this.setProcessNode(processNode, "process", function () {
|
|
|
+ this.setProcessNode(processNode, "process", function ( processor ){
|
|
|
this.processDlg = o2.DL.open({
|
|
|
"title": this.app.lp.process,
|
|
|
"style": this.json.dialogStyle || "user",
|
|
|
@@ -1756,6 +1760,7 @@ MWF.xApplication.process.Xform.Form = MWF.APPForm = new Class({
|
|
|
}
|
|
|
],
|
|
|
"onPostLoad": function () {
|
|
|
+ processor.options.mediaNode = this.content;
|
|
|
setSize.call(this)
|
|
|
}
|
|
|
});
|
|
|
@@ -1866,14 +1871,15 @@ MWF.xApplication.process.Xform.Form = MWF.APPForm = new Class({
|
|
|
if (layout.mobile) {
|
|
|
innerNode = new Element("div").inject(processNode);
|
|
|
}
|
|
|
+
|
|
|
this.processor = new MWF.xApplication.process.Work.Processor(innerNode || processNode, this.businessData.task, {
|
|
|
"style": (layout.mobile) ? "mobile" : (style || "default"),
|
|
|
"opinion": op.opinion,
|
|
|
"tabletWidth": this.json.tabletWidth || 0,
|
|
|
"tabletHeight": this.json.tabletHeight || 0,
|
|
|
"onPostLoad": function () {
|
|
|
- if (postLoadFun) postLoadFun();
|
|
|
- }.bind(this),
|
|
|
+ if (postLoadFun) postLoadFun( this );
|
|
|
+ },
|
|
|
"onResize": function () {
|
|
|
if (resizeFun) resizeFun();
|
|
|
},
|