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

rework transitions

This commit is contained in:
Luke Pulverenti 2016-05-23 23:06:51 -04:00
parent 5d1cf10d82
commit 5a13f0c6dd
6 changed files with 69 additions and 58 deletions

View file

@ -101,13 +101,20 @@
EmbySelectPrototype.createdCallback = function () {
var parent = this.parentNode;
if (!parent.classList.contains('selectContainer')) {
var div = this.ownerDocument.createElement('div');
div.classList.add('selectContainer');
parent.replaceChild(div, this);
div.appendChild(this);
}
if (!this.id) {
this.id = 'select' + new Date().getTime();
}
this.addEventListener('mousedown', onMouseDown);
this.addEventListener('keydown', onKeyDown);
this.addEventListener('focus', onFocus);
this.addEventListener('keydown', onBlur);
this.addEventListener('blur', onBlur);
};
EmbySelectPrototype.attachedCallback = function () {