]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commit
fix: fix various component listeners on page load when the page is already loaded
authorNicolas Coden <nicolas@ncoden.fr>
Sun, 18 Mar 2018 20:27:26 +0000 (21:27 +0100)
committerNicolas Coden <nicolas@ncoden.fr>
Sun, 18 Mar 2018 20:27:26 +0000 (21:27 +0100)
commitf353fc2f1a6d556a511734fa7eeacd0221cd064d
treed64b0fdbe227014c272792be74b7828eda427b54
parentf59e95c91b777e64143708a5a52a0c5bf729aeb5
fix: fix various component listeners on page load when the page is already loaded

Prevent bugs in Accordion, Magellan, OffCanvas, Reveal, Sticky, Tabs and trigger utilities when the component is dynamically added because the window `load` event they rely on would never be triggered.

Note: In addition to the bug fix, the following behaviors are changed:
* Accordion now smoothly scroll to the opened pane when the hash is changed
js/foundation.accordion.js
js/foundation.magellan.js
js/foundation.offcanvas.js
js/foundation.reveal.js
js/foundation.sticky.js
js/foundation.tabs.js
js/foundation.util.triggers.js