5536ecc877b682c13e745ad28ed2dca5bc25e942
2 * Functions to replace injectSpinner which makes img tags with spinners
8 * Creates a spinner element
10 * @param id String id of the spinner
11 * @return jQuery spinner
13 createSpinner: function( id
) {
16 id
: 'mw-spinner-' + id
,
17 class: 'loading-spinner',
24 * Removes a spinner element
28 removeSpinner: function( id
) {
29 $( '#mw-spinner-' + id
).remove();
34 * Injects a spinner after the given objects
36 * @param id String id of the spinner
38 $.fn
.injectSpinner = function( id
) {
39 return this.after( $.createSpinner( id
) );