var res = r.recv();
if ( res && res.content() ) {
if(req._final_complete)
- req._final_complete(req);
+ req._final_complete(req, _return_list);
_pcrud.disconnect();
} else {
_pcrud.disconnect();
overrideWidgetClass : this.overrideEditWidgetClass,
overrideWidgetArgs : this.overrideWidgetArgs,
disableWidgetTest : this.disableWidgetTest,
- onPostSubmit : function(r) {
- var fmObject = openils.Util.readResponse(r);
+ onPostSubmit : function(req, cudResults) {
+ var fmObject = cudResults[0];
if(grid.onPostCreate)
grid.onPostCreate(fmObject);
if(fmObject)
self.hide();
}
- this.editPane.onPostSubmit = function(r) {
+ this.editPane.onPostSubmit = function(r, cudResults) {
self.hide();
- if(onSubmit) onSubmit(r);
+ if(onSubmit) onSubmit(r, cudResults);
}
},
performAutoEditAction : function() {
var self = this;
self.performEditAction({
- oncomplete:function(r) {
+ oncomplete:function(req, cudResults) {
if(self.onPostSubmit)
- self.onPostSubmit(r);
+ self.onPostSubmit(req, cudResults);
}
});
},