mediawiki-skins-MinervaNeue/resources/skins.minerva.scripts
Steph Toyofuku 2b41416c0d Allow addPortletLink to target tabs/associated pages
Currently `mw.util.addPortletLink` cannot properly add a portlet link to
the associated pages tabs, as there is no `p-associated-pages` id on
mobile.  This change pulls the id from the page data, and adds the
necessary class for the tab to be styled correctly - since tabs do not
have corresponding icons while most portlet links do, we also branch on
this class (effectively on whether we are in the tab container) to
ensure an icon is not inserted

Finally, I added a few comments and spacing in the sections of code that
I touched to make them more readable and resolve some of the linter
warnings, but happy to hear if these are not helpful!

Bug: T340728
Change-Id: I33fc12611a6238552a3eb47f6ca37f087903a92a
2023-12-21 16:37:28 -08:00
..
page-issues Drop mw.mobileFrontend references 2023-11-10 01:30:52 +00:00
AB.js Udate jsdoc and use jsdoc-wmf-theme 2023-10-20 13:42:19 +00:00
addPortletLink.js Allow addPortletLink to target tabs/associated pages 2023-12-21 16:37:28 -08:00
ctaDrawers.js Drop mw.mobileFrontend references 2023-11-10 01:30:52 +00:00
downloadPageAction.js Drop mw.mobileFrontend references 2023-11-10 01:30:52 +00:00
drawers.js build: Update eslint-config-wikimedia to 0.16.0 2020-06-04 08:39:32 -07:00
initMobile.js Drop mw.mobileFrontend references 2023-11-10 01:30:52 +00:00
menu.js Simplify menu code 2019-12-19 12:14:13 -08:00
mobileRedirect.js Revert "Add metric platfrom event tracking on mobile desktop toggle" 2023-08-07 16:41:49 +00:00
preInit.js Drop mw.mobileFrontend references 2023-11-10 01:30:52 +00:00
references.js Fix broken reference popup when name contains # character 2023-12-12 15:08:55 +01:00
search.js Drop mw.mobileFrontend references 2023-11-10 01:30:52 +00:00
searchSuggestReveal.js Make MobileFrontend dependency a soft one 2020-01-17 14:02:23 -08:00
setup.js Apply content styles to mw teleport target 2023-09-28 11:29:30 +02:00
styles.less Drop mw.mobileFrontend references 2023-11-10 01:30:52 +00:00
TabScroll.js Udate jsdoc and use jsdoc-wmf-theme 2023-10-20 13:42:19 +00:00
TitleUtil.js mediawiki.RegExp (deprecated) -> mediawiki.util 2019-09-09 18:10:35 +00:00
toc.less Fix toc arrow icon being too big 2023-08-03 18:43:41 +00:00
Toolbar.js Fixes read only mode. 2023-10-31 00:41:29 +00:00
Toolbar.less Fixes read only mode. 2023-10-31 00:41:29 +00:00
UriUtil.js Special handling for hash fragments we cannot decoded 2020-10-20 12:26:54 -07:00
watchstar.js Udate jsdoc and use jsdoc-wmf-theme 2023-10-20 13:42:19 +00:00
watchStar.less Remove old :before icon selectors and update selectors to not use minerva and wikimedia prefixes 2023-09-06 13:53:22 -05:00