diff --git a/o2web/source/x_component_process_Xform/DatagridMobile.js b/o2web/source/x_component_process_Xform/DatagridMobile.js index 6930e7dceb6b224023659b0abb1f2e84a33d5de1..cfae4fbb556112f1ae18cec0199b1ec2e9719350 100644 --- a/o2web/source/x_component_process_Xform/DatagridMobile.js +++ b/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"); diff --git a/o2web/source/x_component_process_Xform/DatagridPC.js b/o2web/source/x_component_process_Xform/DatagridPC.js index 7669f82a74f924ae653ed5c01f071e334109e994..dfcb8b4ca5637dfab366a51259aeb9907af73c0a 100644 --- a/o2web/source/x_component_process_Xform/DatagridPC.js +++ b/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));