From 5e5809ab3285c6142a13802888a9b2c612d84d9c Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 14 Sep 2010 12:49:54 +0800 Subject: [PATCH] Pman.Request.js --- Pman.Request.js | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) 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); -- 2.39.2