return defaults;
},
- /*
- The whole purpose here was to throw the popup in the appropriate scenario.
- Now that's happening in enyo - childWorkspace - deleteItem.
-
- destroy: function (options) {
- var status = this.getParent().get("status"),
- K = XM.SalesOrder,
- that = this,
- payload = {
- type: K.QUESTION,
- },
- args = arguments,
- message;
-
- if (status !== K.CLOSED_STATUS &&
- status !== K.CANCELLED_STATUS) {
- message = "_deleteLine?".loc();
- payload.callback = function (response) {
- if (response.answer) {
- XM.Model.prototype.destroy.apply(that, args);
- }
- };
- } else {
- // Must be closed, shouldn't have come here.
- return;
- }
-
- this.notify(message, payload);
- }, */
-
isActive: function () {
return this.get("status") === XM.SalesOrder.OPEN_STATUS;
}
callback = function (response) {
if (response.answer) {
this.getActive().doPrevious();
+ // Waterfall down event - handled by lineItem grid box's valueChange function which "refreshes" the list
model.on("statusChange", this.waterfall("onChildWorkspaceValueChange"));
model.destroy();
- // Waterfall down event - handled by lineItem grid box's valueChange function which "refreshes" the list
- //this.waterfall("onChildWorkspaceValueChange");
}
};
this.doNotify({