From 5b04db7e35212829257cd679eb66c3bf138d72db Mon Sep 17 00:00:00 2001 From: tof <> Date: Mon, 21 Apr 2008 07:48:05 +0000 Subject: Fixed #718 --- .../source/prado/activecontrols/ajax3.js | 25 +++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) (limited to 'framework/Web') diff --git a/framework/Web/Javascripts/source/prado/activecontrols/ajax3.js b/framework/Web/Javascripts/source/prado/activecontrols/ajax3.js index 001007d7..18cbb3f9 100644 --- a/framework/Web/Javascripts/source/prado/activecontrols/ajax3.js +++ b/framework/Web/Javascripts/source/prado/activecontrols/ajax3.js @@ -612,14 +612,33 @@ Prado.CallbackRequest.prototype = Object.extend(Prado.AjaxRequest.prototype, if(!this.Enabled) return; - + + // Opera don't have onLoading/onLoaded state, so, simulate them just + // before sending the request. + if (Prototype.Browser.Opera) + { + if (this.ActiveControl.onLoading) + { + this.ActiveControl.onLoading(this,null); + Ajax.Responders.dispatch('onLoading',this, this.transport,null); + } + if (this.ActiveControl.onLoaded) + { + this.ActiveControl.onLoaded(this,null); + Ajax.Responders.dispatch('onLoaded',this, this.transport,null); + } + } + + var result; if(this.ActiveControl.HasPriority) { - return Prado.CallbackRequest.enqueue(this); + result = Prado.CallbackRequest.enqueue(this); //return Prado.CallbackRequest.dispatchPriorityRequest(this); } else - return Prado.CallbackRequest.dispatchNormalRequest(this); + result = Prado.CallbackRequest.dispatchNormalRequest(this); + + return result; }, abort : function() -- cgit v1.2.3