Просмотр исходного кода

Merge branch 'feature/Process.resetRange_add_script' into 'develop'

Merge of feature/Process.resetRange_add_script to develop

See merge request o2oa/o2oa!1309
蔡祥熠 5 лет назад
Родитель
Сommit
2d782f4a16

+ 2 - 2
o2web/source/x_component_process_Xform/DatagridMobile.js

@@ -534,7 +534,7 @@ MWF.xApplication.process.Xform.DatagridMobile = new Class({
         //}.bind(this));
 
         this.validationMode();
-        this.fireEvent("addLine");
+        this.fireEvent("addLine", [this.table]);
     },
     _cancelLineEdit : function(e){
         var datagrid = this;
@@ -717,7 +717,7 @@ MWF.xApplication.process.Xform.DatagridMobile = new Class({
         this._loadDatagridStyle();
 
         this.validationMode();
-        this.fireEvent("completeLineEdit");
+        this.fireEvent("completeLineEdit", [table]);
 
         this.addAction.set("text", MWF.xApplication.process.Xform.LP.addLine);
         this.addAction.removeEvents("click");

+ 2 - 2
o2web/source/x_component_process_Xform/DatagridPC.js

@@ -492,7 +492,7 @@ MWF.xApplication.process.Xform.DatagridPC = new Class({
 			
 		this.getData();
         this.validationMode();
-        this.fireEvent("completeLineEdit");
+        this.fireEvent("completeLineEdit", [newTr]);
 
         return true;
 	},
@@ -539,7 +539,7 @@ MWF.xApplication.process.Xform.DatagridPC = new Class({
 		}
 		this.isEdit =true;
         this.validationMode();
-        this.fireEvent("addLine");
+        this.fireEvent("addLine",[this.editorTr]);
 //		newTr.addEvent("blur", function(e){
 //			this._completeLineEdit();
 //		}.bind(this));