Watch/Unwatch - fix for bug 24247. Updating the link text to match the icon
authorAdam Miller <adam@users.mediawiki.org>
Fri, 16 Jul 2010 22:21:31 +0000 (22:21 +0000)
committerAdam Miller <adam@users.mediawiki.org>
Fri, 16 Jul 2010 22:21:31 +0000 (22:21 +0000)
skins/common/ajaxwatch.js

index 2a8ef3c..7d0babf 100644 (file)
@@ -118,6 +118,8 @@ $j( document ).ready( function() {
                        $link.attr( 'href', $link.attr( 'href' ).replace( '/&action=' + action + '/', '&action=' + otheraction ) );
                        if( $link.parents( 'li' ).attr( 'id' ) == 'ca-' + action ) {
                                $link.parents( 'li' ).attr( 'id', 'ca-' + otheraction );
+                               // update the link text with the new message
+                               $link.text( wgAjaxWatch[ otheraction + 'Msg'] );
                        }
                };
                return false;