Index: trunk/phase3/skins/common/ajaxwatch.js |
— | — | @@ -12,7 +12,9 @@ |
13 | 13 | watchMsg: "Watch", |
14 | 14 | unwatchMsg: "Unwatch", |
15 | 15 | watchingMsg: "Watching...", |
16 | | - unwatchingMsg: "Unwatching..." |
| 16 | + unwatchingMsg: "Unwatching...", |
| 17 | + 'tooltip-ca-watchMsg': "Add this page to your watchlist", |
| 18 | + 'tooltip-ca-unwatchMsg': "Remove this page from your watchlist" |
17 | 19 | }; |
18 | 20 | } |
19 | 21 | |
— | — | @@ -31,7 +33,14 @@ |
32 | 34 | if ( newText == wgAjaxWatch.watchingMsg || newText == wgAjaxWatch.unwatchingMsg ) { |
33 | 35 | wgAjaxWatch.watchLinks[i].className += ' loading'; |
34 | 36 | } else if ( newText == wgAjaxWatch.watchMsg || newText == wgAjaxWatch.unwatchMsg ) { |
35 | | - wgAjaxWatch.watchLinks[i].className = wgAjaxWatch.watchLinks[i].className.replace( /loading/i, '' ); |
| 37 | + wgAjaxWatch.watchLinks[i].className = |
| 38 | + wgAjaxWatch.watchLinks[i].className.replace( /loading/i, '' ); |
| 39 | + // update the title text on the link |
| 40 | + var keyCommand = wgAjaxWatch.watchLinks[i].title.match( /\[.*\]/ ) ? |
| 41 | + wgAjaxWatch.watchLinks[i].title.match( /\[.*\]/ )[0] : ""; |
| 42 | + wgAjaxWatch.watchLinks[i].title = ( newText == wgAjaxWatch.watchMsg ? |
| 43 | + wgAjaxWatch['tooltip-ca-watchMsg'] : wgAjaxWatch['tooltip-ca-unwatchMsg'] ) |
| 44 | + + " " + keyCommand; |
36 | 45 | } |
37 | 46 | } |
38 | 47 | } else { |
Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -1618,7 +1618,7 @@ |
1619 | 1619 | * to ensure that client-side caches do not keep obsolete copies of global |
1620 | 1620 | * styles. |
1621 | 1621 | */ |
1622 | | -$wgStyleVersion = '255'; |
| 1622 | +$wgStyleVersion = '256'; |
1623 | 1623 | |
1624 | 1624 | |
1625 | 1625 | # Server-side caching: |
Index: trunk/phase3/includes/Skin.php |
— | — | @@ -440,7 +440,8 @@ |
441 | 441 | |
442 | 442 | if ( $wgOut->isArticleRelated() && $wgUseAjax && $wgAjaxWatch && $wgUser->isLoggedIn() ) { |
443 | 443 | $msgs = (object)array(); |
444 | | - foreach ( array( 'watch', 'unwatch', 'watching', 'unwatching' ) as $msgName ) { |
| 444 | + foreach ( array( 'watch', 'unwatch', 'watching', 'unwatching', |
| 445 | + 'tooltip-ca-watch', 'tooltip-ca-unwatch' ) as $msgName ) { |
445 | 446 | $msgs->{$msgName . 'Msg'} = wfMsg( $msgName ); |
446 | 447 | } |
447 | 448 | $vars['wgAjaxWatch'] = $msgs; |