Index: trunk/phase3/skins/common/preview.js |
— | — | @@ -20,6 +20,10 @@ |
21 | 21 | $j('.templatesUsed').slideUp(); |
22 | 22 | $j('.hiddencats').slideUp(); |
23 | 23 | |
| 24 | + // Display a loading graphic |
| 25 | + var loadSpinner = $j('<div class="mw-ajax-loader"/>'); |
| 26 | + $j('#wikiPreview').before( loadSpinner ); |
| 27 | + |
24 | 28 | var page = $j('<html/>'); |
25 | 29 | page.load( wgScript+'?action=submit', |
26 | 30 | postData, |
— | — | @@ -37,6 +41,8 @@ |
38 | 42 | $j(copyElements[i]).attr( 'class', newClasses ); |
39 | 43 | } |
40 | 44 | |
| 45 | + loadSpinner.remove(); |
| 46 | + |
41 | 47 | $j('#wikiPreview').slideDown(); |
42 | 48 | } ); |
43 | 49 | } |