Welcome to my
talk page. Please adhere to the talk page
guidelines and particularly the following:
|
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)
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)
Welcome to my
talk page. Please adhere to the talk page
guidelines and particularly the following:
|
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)
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)