X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=Pman.Request.js;fp=Pman.Request.js;h=a2b5fc6c287d25a481d8cffc159fe371f283d5f5;hp=82d18ff0c5c822661a5e750f5006af9ecdf557ad;hb=586e4eb470252d837ba18b67e4c3c1702131fd1d;hpb=0892bd2a238509a1a984007cf85c9197ec7e7cba diff --git a/Pman.Request.js b/Pman.Request.js index 82d18ff0..a2b5fc6c 100644 --- a/Pman.Request.js +++ b/Pman.Request.js @@ -94,6 +94,7 @@ Roo.extend(Pman.Request, Roo.data.Connection, { Roo.callback(options.success, options.scope, [res, options]); }, + handleFailure : function(response, e){ this.transId = false; var options = response.argument.options; @@ -109,9 +110,12 @@ Roo.extend(Pman.Request, Roo.data.Connection, { if (res !== true) { var decode = this.processResponse(response); Roo.log(decode); - - if (Roo.MessageBox.isVisible()) { - alert(decode && decode.errorMsg ? decode.errorMsg : "Error Sending data - return true from failure to remove message"); + // this pops up even if we have a method to handle failure.. + if (Roo.MessageBox.isVisible() ) { + if (!options.failure) { + alert(decode && decode.errorMsg ? decode.errorMsg : "Error Sending data - return true from failure to remove message"); + } + return; }