dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a99a39d
)
Watch/Unwatch - fix for bug 24247. Updating the link text to match the icon
author
Adam Miller
<adam@users.mediawiki.org>
Fri, 16 Jul 2010 22:21:31 +0000
(22:21 +0000)
committer
Adam Miller
<adam@users.mediawiki.org>
Fri, 16 Jul 2010 22:21:31 +0000
(22:21 +0000)
skins/common/ajaxwatch.js
patch
|
blob
|
history
diff --git
a/skins/common/ajaxwatch.js
b/skins/common/ajaxwatch.js
index
2a8ef3c
..
7d0babf
100644
(file)
--- 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;