Changeset 2441 for trunk/framework/Web

Show
Ignore:
Timestamp:
04/21/2008 02:48:05 AM (9 months ago)
Author:
tof
Message:

Fixed #718

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/framework/Web/Javascripts/source/prado/activecontrols/ajax3.js

    r2406 r2441  
    613613                if(!this.Enabled) 
    614614                        return; 
    615  
     615         
     616                // Opera don't have onLoading/onLoaded state, so, simulate them just 
     617                // before sending the request. 
     618                if (Prototype.Browser.Opera) 
     619                { 
     620                        if (this.ActiveControl.onLoading) 
     621                        { 
     622                                this.ActiveControl.onLoading(this,null); 
     623                                Ajax.Responders.dispatch('onLoading',this, this.transport,null); 
     624                        } 
     625                        if (this.ActiveControl.onLoaded) 
     626                        { 
     627                                this.ActiveControl.onLoaded(this,null); 
     628                                Ajax.Responders.dispatch('onLoaded',this, this.transport,null); 
     629                        } 
     630                } 
     631                 
     632                var result; 
    616633                if(this.ActiveControl.HasPriority) 
    617634                { 
    618                         return Prado.CallbackRequest.enqueue(this); 
     635                        result = Prado.CallbackRequest.enqueue(this); 
    619636                        //return Prado.CallbackRequest.dispatchPriorityRequest(this); 
    620637                } 
    621638                else 
    622                         return Prado.CallbackRequest.dispatchNormalRequest(this); 
     639                        result =  Prado.CallbackRequest.dispatchNormalRequest(this); 
     640                 
     641                return result; 
    623642        }, 
    624643