MediaWiki:Gadget-addsection-plus.js: Difference between revisions
$(document).ready( → $( |
Johnrdorazio (talk | contribs) m 1 revision imported |
||
(No difference)
|
Latest revision as of 20:48, August 30, 2020
// **********************************************************************
// ** ***WARNING GLOBAL GADGET FILE*** **
// ** changes to this file affect many users. **
// ** please discuss on the talk page before editing **
// ** **
// **********************************************************************
$( function () {
var tab, tablink;
tab = document.getElementById('ca-addsection');
if ( !tab ) {
return;
}
tablink = tab.getElementsByTagName('a')[0];
if ( !tablink ) {
return;
}
tablink.firstChild.nodeValue = '+';
if ( mw.config.get( 'skin' ) === 'monobook' ) {
tablink.style.paddingLeft = ".4em";
tablink.style.paddingRight = ".4em";
}
});