X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=Pman.Request.js;h=82d18ff0c5c822661a5e750f5006af9ecdf557ad;hp=65ee5f424478836be64341fb657031d41fc10ca1;hb=8cd2a9237c684aa16bc21e3ac6d3793c49c65400;hpb=538a00a6037d75db8597111a7bcace48ea0588ea diff --git a/Pman.Request.js b/Pman.Request.js index 65ee5f42..82d18ff0 100644 --- a/Pman.Request.js +++ b/Pman.Request.js @@ -81,14 +81,14 @@ Roo.extend(Pman.Request, Roo.data.Connection, { } var res = this.processResponse(response); - if (!res.success) { // error! + if (!res.success && !res.done) { // error! if (options.failure) { // failure is handled... - do not show error.. Roo.callback(options.failure, options.scope, [res, options]); return; } - Roo.bootstrap.MessageBox.hide(); // hide any existing messages.. - Roo.bootstrap.MessageBox.alert("Error", res && res.errorMsg ? res.errorMsg : "Error Sending data"); + Roo.MessageBox.hide(); // hide any existing messages.. + Roo.MessageBox.alert("Error", res && res.errorMsg ? res.errorMsg : "Error Sending data"); return; } Roo.callback(options.success, options.scope, [res, options]);