source: trunk/web-app/js/application.js @ 311

Last change on this file since 311 was 311, checked in by gav, 14 years ago

Format to 4 spaces, no tabs.

File size: 379 bytes
RevLine 
[55]1var Ajax;
2if (Ajax && (Ajax != null)) {
[311]3    Ajax.Responders.register({
4    onCreate: function() {
[55]5        if($('spinner') && Ajax.activeRequestCount>0)
[311]6        Effect.Appear('spinner',{duration:0.5,queue:'end'});
7    },
8    onComplete: function() {
[55]9        if($('spinner') && Ajax.activeRequestCount==0)
[311]10        Effect.Fade('spinner',{duration:0.5,queue:'end'});
11    }
12    });
[55]13}
Note: See TracBrowser for help on using the repository browser.