From 1bc00197a9a4f5248c52c4a47c897092b13ec834 Mon Sep 17 00:00:00 2001 From: Adam Miller Date: Fri, 16 Jul 2010 22:21:31 +0000 Subject: [PATCH] Watch/Unwatch - fix for bug 24247. Updating the link text to match the icon --- skins/common/ajaxwatch.js | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.20.1