From: Adam Miller Date: Fri, 16 Jul 2010 22:21:31 +0000 (+0000) Subject: Watch/Unwatch - fix for bug 24247. Updating the link text to match the icon X-Git-Tag: 1.31.0-rc.0~36124 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=1bc00197a9a4f5248c52c4a47c897092b13ec834;p=lhc%2Fweb%2Fwiklou.git Watch/Unwatch - fix for bug 24247. Updating the link text to match the icon --- diff --git a/skins/common/ajaxwatch.js b/skins/common/ajaxwatch.js index 2a8ef3c315..7d0babfd91 100644 --- a/skins/common/ajaxwatch.js +++ b/skins/common/ajaxwatch.js @@ -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;