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

Revision: 100155
Author:   raindrift
Date:     2011-10-18 20:28:17 +0000 (Tue, 18 Oct 2011)
Log Message:
-----------
fixed weird scrolling behavior for multi-file selection

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-10-18 
20:28:05 UTC (rev 100154)
+++ trunk/extensions/UploadWizard/resources/mw.UploadWizard.js  2011-10-18 
20:28:17 UTC (rev 100155)
@@ -354,7 +354,11 @@
                var _this = this;
 
                // scroll to the top of the page (the current step might have 
been very long, vertically)
-               $j( 'html, body' ).animate( { scrollTop: 0 }, 'slow' );
+               if ( selectedStepName !== 'file' ) {
+                       // this is the wrong behavior when selecting files 
(hides interface), so skip it.
+                       // also, it breaks scrolling when selecting multiple 
files at once.
+                       $j( 'html, body' ).animate( { scrollTop: 0 }, 'slow' );
+               }
 
                $j.each( _this.stepNames, function(i, stepName) {
 


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

Reply via email to