Last change
on this file since 839 was
825,
checked in by gav, 14 years ago
|
Add jQuery AJAX util js and css, part 2.
|
File size:
571 bytes
|
Rev | Line | |
---|
[55] | 1 | var Ajax; |
---|
| 2 | if (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 | } |
---|
[824] | 14 | |
---|
| 15 | // jQuery AJAX utils. |
---|
| 16 | |
---|
[825] | 17 | function loadingIndication() { |
---|
| 18 | return jQuery('#jQueryAjaxLoading').clone(); |
---|
[824] | 19 | } |
---|
| 20 | |
---|
[825] | 21 | function errorIndication() { |
---|
| 22 | return jQuery('#jQueryAjaxDefaultError').clone(); |
---|
[824] | 23 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.