mediawiki-skins-Vector/resources/skins.vector.es6
Jan Drewniak 98c92edbba Factor out functions in PinnableElement.js
Splits the click handler for pinnable elements into
separate functions to reduce indentation and
maybe improve testability.

The click handler for pinnable elements is now
placed in a function called `togglePinnableElement()`
and attached to the click event via `.bind()`.

Class toggling is split into a separate
function called `togglePinnableClasses()` as well.

This should have no functional impact.

Change-Id: Ib27a469f6eb7e28360203d09db3315c6bde5c890
2023-01-11 23:58:30 +00:00
..
images Move limitedWidthToggle.js and features.js to skins.vector.es6 module 2022-12-07 16:45:52 -07:00
.eslintrc.json Limit WVUI search to ES6 browsers 2022-02-09 22:10:11 +00:00
AB.js Sticky header AB test bucketing for 2 treatment buckets 2022-08-08 21:14:02 +00:00
config.json Make beginning bold on scroll 2022-03-25 01:13:42 +00:00
deferUntilFrame.js Fix TOC section activation on link click bug 2022-02-08 14:45:16 -07:00
features.js Move limitedWidthToggle.js and features.js to skins.vector.es6 module 2022-12-07 16:45:52 -07:00
limitedWidthToggle.js Add label and title attribute/tooltip to full-screen toggle button 2023-01-05 00:56:39 +00:00
limitedWidthToggle.less Move limitedWidthToggle.js and features.js to skins.vector.es6 module 2022-12-07 16:45:52 -07:00
main.js Replace .sidebar-toc class with .vector-toc and use PinnableElement in TOC 2023-01-04 17:48:03 -06:00
pinnableElement.js Factor out functions in PinnableElement.js 2023-01-11 23:58:30 +00:00
scrollObserver.js Factor out a separate scroll observer for the TOC A/B test, which should be fired separately from the page title observer used by the sticky header and TOC 2022-05-09 20:44:54 +00:00
searchToggle.js Search: Use Codex and Vue 3 instead of WVUI and Vue 2. 2022-07-18 12:54:47 -07:00
sectionObserver.js Merge "Use TOC template data for showing collapsible section arrows" 2022-02-22 22:16:18 +00:00
stickyHeader.js Use PinnableHeader in the TOC all the time 2022-11-30 01:09:43 +00:00
stickyHeaderAB.js Sticky header edit button A/B test bucketing (updated) 2022-05-31 15:58:35 -07:00
tableOfContents.js Fix mustache template rendering when TOC is rerendered after an edit 2023-01-10 19:12:55 -07:00
tableOfContentsConfig.json [ToC] Show new/modified sections after publishing an edit (new floating ToC) 2022-08-15 20:02:49 +00:00