root / web-presentation / trunk / eneraptor-web-presentation / web-app / js / application.js @ 87
History | View | Annotate | Download (373 Bytes)
1 |
var Ajax;
|
---|---|
2 |
if (Ajax && (Ajax != null)) { |
3 |
Ajax.Responders.register({ |
4 |
onCreate: function() { |
5 |
if($('spinner') && Ajax.activeRequestCount>0) |
6 |
Effect.Appear('spinner',{duration:0.5,queue:'end'}); |
7 |
}, |
8 |
onComplete: function() { |
9 |
if($('spinner') && Ajax.activeRequestCount==0) |
10 |
Effect.Fade('spinner',{duration:0.5,queue:'end'}); |
11 |
} |
12 |
}); |
13 |
} |