update collapsibles
This commit is contained in:
parent
c2a85cce55
commit
5df632bdee
10 changed files with 341 additions and 313 deletions
|
@ -82,7 +82,13 @@
|
|||
|
||||
this.insertAdjacentHTML('afterbegin', html);
|
||||
|
||||
this.querySelector('.emby-collapsible-button').addEventListener('click', onButtonClick);
|
||||
var button = this.querySelector('.emby-collapsible-button');
|
||||
|
||||
button.addEventListener('click', onButtonClick);
|
||||
|
||||
if (this.getAttribute('data-expanded') == 'true') {
|
||||
onButtonClick.call(button);
|
||||
}
|
||||
};
|
||||
|
||||
document.registerElement('emby-collapse', {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue