http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88615

Revision: 88615
Author:   krinkle
Date:     2011-05-22 22:52:07 +0000 (Sun, 22 May 2011)
Log Message:
-----------
Optimization jquery.spinner.js:
Whether or not it should be compatible with 1.16, there's a IIFE wrapper around 
this module that aliases $ to jQuery so it's certainly available here.

Modified Paths:
--------------
    trunk/extensions/UploadWizard/resources/jquery/jquery.spinner.js

Modified: trunk/extensions/UploadWizard/resources/jquery/jquery.spinner.js
===================================================================
--- trunk/extensions/UploadWizard/resources/jquery/jquery.spinner.js    
2011-05-22 22:50:51 UTC (rev 88614)
+++ trunk/extensions/UploadWizard/resources/jquery/jquery.spinner.js    
2011-05-22 22:52:07 UTC (rev 88615)
@@ -5,7 +5,7 @@
        $.fn.loadingSpinner = function( ) {
                if ( this.length ) {
                        this.html(
-                               $j( '<div />' ).addClass( 'loadingSpinner' )
+                               $( '<div />' ).addClass( 'loadingSpinner' )
                        );
                }
                return this;
@@ -15,16 +15,16 @@
         * element does not display child elements, ( images, video )
         */
        $.fn.getAbsoluteOverlaySpinner = function(){
-               var pos = $j( this ).offset();                          
-               var posLeft = (  $j( this ).width() ) ? 
-                       parseInt( pos.left + ( .4 * $j( this ).width() ) ) : 
+               var pos = $( this ).offset();                           
+               var posLeft = (  $( this ).width() ) ? 
+                       parseInt( pos.left + ( .4 * $( this ).width() ) ) : 
                        pos.left + 30;
                        
-               var posTop = (  $j( this ).height() ) ? 
-                       parseInt( pos.top + ( .4 * $j( this ).height() ) ) : 
+               var posTop = (  $( this ).height() ) ? 
+                       parseInt( pos.top + ( .4 * $( this ).height() ) ) : 
                        pos.top + 30;
                
-               var $spinner = $j('<div />')
+               var $spinner = $('<div />')
                        .loadingSpinner()                               
                        .css({
                                'width' : 32,
@@ -33,7 +33,7 @@
                                'top' : posTop + 'px',
                                'left' : posLeft + 'px'
                        });
-               $j('body').append( $spinner     );
+               $('body').append( $spinner      );
                return $spinner;
        }
 } )( jQuery );


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to