1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update collapsibles

This commit is contained in:
Luke Pulverenti 2016-07-11 12:56:16 -04:00
parent c2a85cce55
commit 5df632bdee
10 changed files with 341 additions and 313 deletions

View file

@ -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', {