* request, a url encoded string or a function to call to get either.
* @cfg {Function} success called with ( JSON decoded data of the data.. )
* @cfg {Function} success called with ( JSON decoded data of the data.. )
-* @cfg {Boolean} showFailtureDialog (true|false) default true
+* @cfg {Boolean} showFailureDialog (true|false) default true
*/
Pman.Request = function(config){
Roo.extend(Pman.Request, Roo.data.Connection, {
// private
- showFailtureDialog : true,
+ showFailureDialog : true,
processResponse : function(response) {
// convert the Roo Connection response into JSON data.
if (this.mask && this.maskEl) {
Roo.get(this.maskEl).unmask(true);
}
+ if(!this.showFailureDialog){
+ return;
+ }
if (res !== true) {
var decode = this.processResponse(response);
Roo.log(decode);
- if(!this.showFailtureDialog){
- return;
- }
-
if (Roo.MessageBox.isVisible()) {
alert(decode && decode.errorMsg ? decode.errorMsg : "Error Sending data - return true from failure to remove message");
return;
}
}
-});
\ No newline at end of file
+});