X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=resources%2Fsrc%2Fjquery%2Fjquery.spinner.js;h=9079cc09b77595ccd023d9feae6f91d5c28d5e8e;hb=b1b0070dc7557311cc38e7cc99e4231ac4b92940;hp=41c555b71caa79316b94596f6c2e34952b6d6365;hpb=f8659ae6ea90d7bc8ce28bfc1caa56153878836f;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/src/jquery/jquery.spinner.js b/resources/src/jquery/jquery.spinner.js index 41c555b71c..9079cc09b7 100644 --- a/resources/src/jquery/jquery.spinner.js +++ b/resources/src/jquery/jquery.spinner.js @@ -59,6 +59,8 @@ * @return {jQuery} */ createSpinner: function ( opts ) { + var $spinner; + if ( opts !== undefined && $.type( opts ) !== 'object' ) { opts = { id: opts @@ -67,7 +69,7 @@ opts = $.extend( {}, defaults, opts ); - var $spinner = $( '
', { 'class': 'mw-spinner', title: '...' } ); + $spinner = $( '
' ).addClass( 'mw-spinner' ).attr( 'title', '...' ); if ( opts.id !== undefined ) { $spinner.attr( 'id', 'mw-spinner-' + opts.id ); }