https://www.mediawiki.org/wiki/Special:Code/MediaWiki/101922

Revision: 101922
Author:   raindrift
Date:     2011-11-04 00:02:52 +0000 (Fri, 04 Nov 2011)
Log Message:
-----------
jumpy scrolling behavior came back.  fixed again: moveToStep now only does 
things if there are things to do.

Modified Paths:
--------------
    trunk/extensions/UploadWizard/resources/mw.UploadWizard.js

Modified: trunk/extensions/UploadWizard/resources/mw.UploadWizard.js
===================================================================
--- trunk/extensions/UploadWizard/resources/mw.UploadWizard.js  2011-11-04 
00:00:26 UTC (rev 101921)
+++ trunk/extensions/UploadWizard/resources/mw.UploadWizard.js  2011-11-04 
00:02:52 UTC (rev 101922)
@@ -358,6 +358,11 @@
        moveToStep: function( selectedStepName, callback ) {
                var _this = this;
 
+               if( _this.currentStepName === selectedStepName ) {
+                       // already there!
+                       return;
+               }
+               
                // scroll to the top of the page (the current step might have 
been very long, vertically)
                $j( 'html, body' ).animate( { scrollTop: 0 }, 'slow' );
 


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

Reply via email to