|
|
@@ -1154,12 +1154,14 @@ MWF.xApplication.process.Xform.Form = MWF.APPForm = new Class({
|
|
|
|
|
|
if (this.businessData.control["allowSave"]) {
|
|
|
this.fireEvent("beforeSave");
|
|
|
+ this.fireEvent("beforeSaveWork");
|
|
|
|
|
|
if (this.app && this.app.fireEvent) this.app.fireEvent("beforeSave");
|
|
|
this.saveFormData(function (json) {
|
|
|
if (this.app && !silent) this.app.notice(MWF.xApplication.process.Xform.LP.dataSaved, "success");
|
|
|
if (callback && typeOf(callback) === "function") callback();
|
|
|
this.fireEvent("afterSave");
|
|
|
+ this.fireEvent("afterSaveWork");
|
|
|
if (this.app && this.app.fireEvent) this.app.fireEvent("afterSave");
|
|
|
}.bind(this));
|
|
|
|