CollapseSections in Vector 2022
The CollapseSections script looks a bit wonky on the skin Vector 2022. The arrows are there but they're mostly covered by the whitespace, making the clickable space rather small.
I will be using it nonetheless, though! — Mignof (talk | contribs) 17:59, 27 March 2024 (UTC)
- @Mignof Thanks for your perseverance! It should be fixed now. – BrandonXLF (talk) 07:53, 30 March 2024 (UTC)
ShowTemplates: portlet link issue
Hey, great job on ShowTemplates, it is really wonderful. I want to ask you to fix the script a little bit.
var portletItem = $(mw.util.addPortletLink('p-tb', '#', 'Show templates'));
portletItem.click(function() {
→
var portletItem = mw.util.addPortletLink('p-tb', '#', 'Show templates');
$( portletItem ).find( 'a' ).click( function( e ) {
e.preventDefault();
Currently the click handler is implemented on the list item, not on the link in it, and it ends up adding #
into the URL (and moving the user back to the start of the page) because of it. Thanks in advance. stjn 23:34, 17 April 2024 (UTC)
- @Stjn Done. Thank you for the bug fix I'm glad you're enjoying the script! – BrandonXLF (talk) 02:28, 18 April 2024 (UTC)