X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=Pman.Request.js;h=82d18ff0c5c822661a5e750f5006af9ecdf557ad;hp=5fff1a24192c34d1f674052fc25e7f2fda2155b9;hb=8cd2a9237c684aa16bc21e3ac6d3793c49c65400;hpb=41b862113c10adb5b3bf3403f5d5505e8e12e505 diff --git a/Pman.Request.js b/Pman.Request.js index 5fff1a24..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]); @@ -110,12 +110,12 @@ Roo.extend(Pman.Request, Roo.data.Connection, { var decode = this.processResponse(response); Roo.log(decode); - if (Roo.bootstrap.MessageBox.isVisible()) { + if (Roo.MessageBox.isVisible()) { alert(decode && decode.errorMsg ? decode.errorMsg : "Error Sending data - return true from failure to remove message"); return; } - Roo.bootstrap.MessageBox.alert("Error", decode && decode.errorMsg ? decode.errorMsg : "Error Sending data"); + Roo.MessageBox.alert("Error", decode && decode.errorMsg ? decode.errorMsg : "Error Sending data"); } }