Follow change to r59680. Adding a better regex
authorAdam Miller <adam@users.mediawiki.org>
Wed, 2 Dec 2009 21:43:52 +0000 (21:43 +0000)
committerAdam Miller <adam@users.mediawiki.org>
Wed, 2 Dec 2009 21:43:52 +0000 (21:43 +0000)
includes/DefaultSettings.php
skins/common/ajaxwatch.js

index 0dd99c6..c1bb33a 100644 (file)
@@ -1618,7 +1618,7 @@ $wgCacheEpoch = '20030516000000';
  * to ensure that client-side caches do not keep obsolete copies of global
  * styles.
  */
-$wgStyleVersion = '256';
+$wgStyleVersion = '257';
 
 
 # Server-side caching:
index 2f694e0..7f54601 100644 (file)
@@ -36,8 +36,8 @@ wgAjaxWatch.setLinkText = function( newText ) {
                                wgAjaxWatch.watchLinks[i].className = 
                                        wgAjaxWatch.watchLinks[i].className.replace( /loading/i, '' );
                                // update the title text on the link
-                               var keyCommand = wgAjaxWatch.watchLinks[i].title.match( /\[.*\]/ ) ? 
-                                       wgAjaxWatch.watchLinks[i].title.match( /\[.*\]/ )[0] : "";
+                               var keyCommand = wgAjaxWatch.watchLinks[i].title.match( /\[.*?\]$/ ) ? 
+                                       wgAjaxWatch.watchLinks[i].title.match( /\[.*?\]$/ )[0] : "";
                                wgAjaxWatch.watchLinks[i].title = ( newText == wgAjaxWatch.watchMsg ? 
                                        wgAjaxWatch['tooltip-ca-watchMsg'] : wgAjaxWatch['tooltip-ca-unwatchMsg'] )
                                        + " " + keyCommand;