MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 44: Line 44:
var namespace = mw.config.get('wgCanonicalNamespace');
var namespace = mw.config.get('wgCanonicalNamespace');
if (namespace === 'UserProfile' || namespace === 'UserWiki') {
if (namespace === 'UserProfile' || namespace === 'UserWiki') {
var talkTab;
if (mw.config.get('skin') == 'nimbus') {
if (mw.config.get('skin') == 'nimbus') {
var talkTab = $('a[title="Discussion about the content page"]');
talkTab = $('a[title="Discussion about the content page"]');
talkTab.removeClass('tab-new');
talkTab.removeClass('tab-new');
} else {
} else {
var talkTab = $('#ca-talk a');
talkTab = $('#ca-talk a');
$('#ca-talk').removeClass('new');
$('#ca-talk').removeClass('new');
}
}