docbrown/app/javascript/packs/storiesList.js
Julien Maury aba55f2a77
stories list script as separate js file - defer attribute (#13993)
* stories list script as separate js file - defer attribute

* change name storiesListScript for storiesList

* remove legacy function hasClass()

* add description to js pack

* remove case that triggers nothing

* Revert "remove case that triggers nothing"

 the if statement is on the element not its parents

This reverts commit f4402f5456e15da122f9820917f5965a1ebc50a4.

* remove deprecated code from storiesList pack

* remove unused code
2021-06-21 10:59:30 +07:00

8 lines
220 B
JavaScript

/**
* @file A custom event that gets dispatched to notify search forms to synchronize their state.
*/
window.dispatchEvent(
new CustomEvent('syncSearchForms', {
detail: { querystring: location.search },
}),
);