X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=resources%2Fsrc%2Fjquery%2Fjquery.spinner.js;h=9079cc09b77595ccd023d9feae6f91d5c28d5e8e;hb=1df6b21c90965ec7bb204d6fbab6082cc5805c3a;hp=41c555b71caa79316b94596f6c2e34952b6d6365;hpb=8897fc1f4717fefcd118c67bbe3ca401c2836330;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 ); }