Fix for r56924: don't do any mouseover/mouseout effects while the spinner is being...
authorRoan Kattouw <catrope@users.mediawiki.org>
Mon, 28 Sep 2009 09:48:35 +0000 (09:48 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Mon, 28 Sep 2009 09:48:35 +0000 (09:48 +0000)
includes/DefaultSettings.php
skins/common/ajaxwatch.js

index d86f1cb..87edd1b 100644 (file)
@@ -1606,7 +1606,7 @@ $wgCacheEpoch = '20030516000000';
  * to ensure that client-side caches do not keep obsolete copies of global
  * styles.
  */
-$wgStyleVersion = '241';
+$wgStyleVersion = '242';
 
 
 # Server-side caching:
index 76d3734..2e1db0d 100644 (file)
@@ -159,12 +159,15 @@ wgAjaxWatch.onLoad = function() {
          wgAjaxWatch.imgBasePath = el1.firstChild.firstChild.src
                                .replace( /\/vector\/images\/watch_(off|on).gif/, "" );
          el1.firstChild.onmouseover = function( e ) {
-           this.firstChild.src = wgAjaxWatch.imgBasePath
-                                       + "/vector/images/watch_over.gif";
+           if ( !wgAjaxWatch.inprogress )
+               this.firstChild.src = wgAjaxWatch.imgBasePath
+                       + "/vector/images/watch_over.gif";
          }
          el1.firstChild.onmouseout = function( e ) {
-           this.firstChild.src = wgAjaxWatch.imgBasePath
-                                       + "/vector/images/watch_" + ( wgAjaxWatch.watching ? "on.gif" : "off.gif");
+           if ( !wgAjaxWatch.inprogress )
+               this.firstChild.src = wgAjaxWatch.imgBasePath
+                       + "/vector/images/watch_" + ( wgAjaxWatch.watching ?
+                               "on.gif" : "off.gif" );
          }
        }
        } catch( e ) {