refactor(js): use DOMContentLoaded instead of ds:page:update
This commit is contained in:
parent
38e152f755
commit
0dac59bffc
4 changed files with 5 additions and 5 deletions
|
@ -14,7 +14,7 @@ function expandProcedureDescription() {
|
|||
descBody.classList.remove('read-more-collapsed');
|
||||
}
|
||||
|
||||
addEventListener('ds:page:update', updateReadMoreVisibility);
|
||||
addEventListener('DOMContentLoaded', updateReadMoreVisibility);
|
||||
addEventListener('resize', updateReadMoreVisibility);
|
||||
|
||||
delegate('click', '.read-more-button', expandProcedureDescription);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue