MediaWiki:Gadget-addsection-plus.js: Difference between revisions
Content deleted Content added
$(document).ready( → $( |
Add support for Vector 2022 (https://www.mediawiki.org/wiki/Talk:Reading/Web/Desktop_Improvements#c-Nathanielcwm-2022-07-06T13:14:00.000Z-Replace_the_%22new_section%22_tab_text_with_%22+%22_gadget_not_working.) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 6:
// **********************************************************************
$( function () {
var tab, tablink, skin;
tab = document.getElementById('ca-addsection');
Line 13:
}
tablink = tab.getElementsByTagName( skin === 'vector' || skin === 'vector-2022' ? 'span' : 'a' )[0];
if ( !tablink ) {
return;
Line 19 ⟶ 20:
tablink.firstChild.nodeValue = '+';
if (
tablink.style.paddingLeft = ".4em";
tablink.style.paddingRight = ".4em";
|