From: Alan Knowles Date: Tue, 14 Sep 2010 04:49:54 +0000 (+0800) Subject: Pman.Request.js X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=5e5809ab3285c6142a13802888a9b2c612d84d9c Pman.Request.js --- diff --git a/Pman.Request.js b/Pman.Request.js index 8c3a613e..6aa40aa0 100644 --- a/Pman.Request.js +++ b/Pman.Request.js @@ -31,6 +31,12 @@ Pman.Request = function(config){ Pman.Request.superclass.constructor.call(this, config); this.request(config); + + if (this.mask && this.maskEl) { + Roo.get(this.maskEl).mask(this.mask); + + } + } Roo.extend(Pman.Request, Roo.data.Connection, { @@ -59,12 +65,17 @@ Roo.extend(Pman.Request, Roo.data.Connection, { return res; }, - handleResponse : function(response){ - this.transId = false; - var options = response.argument.options; - response.argument = options ? options.argument : null; - this.fireEvent("requestcomplete", this, response, options); - + handleResponse : function(response) + { + this.transId = false; + var options = response.argument.options; + response.argument = options ? options.argument : null; + this.fireEvent("requestcomplete", this, response, options); + + if (this.mask && this.maskEl) { + Roo.get(this.maskEl).unmask(); + } + var res = this.processResponse(response); if (!res.success) { // error! @@ -87,7 +98,9 @@ Roo.extend(Pman.Request, Roo.data.Connection, { response.argument = options ? options.argument : null; this.fireEvent("requestexception", this, response, options, e); var res = Roo.callback(options.failure, options.scope, [response, options]); - + if (this.mask && this.maskEl) { + Roo.get(this.maskEl).unmask(); + } if (res !== true) { var decode = this.processResponse(response);