mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
rework transitions
This commit is contained in:
parent
5d1cf10d82
commit
5a13f0c6dd
6 changed files with 69 additions and 58 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue