Run load scripts after ujs responces

This commit is contained in:
Paul Chavard 2019-08-01 15:22:37 +02:00
parent c370b61abd
commit 86b9ed2079
11 changed files with 20 additions and 18 deletions

View file

@ -14,7 +14,7 @@ function expandProcedureDescription() {
descBody.classList.remove('read-more-collapsed');
}
addEventListener('turbolinks:load', updateReadMoreVisibility);
addEventListener('ds:page:update', updateReadMoreVisibility);
addEventListener('resize', updateReadMoreVisibility);
delegate('click', '.read-more-button', expandProcedureDescription);