mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update xmltv config page
This commit is contained in:
parent
8b5889ea3c
commit
b449d37d84
12 changed files with 64 additions and 57 deletions
|
@ -3,6 +3,7 @@
|
|||
var EmbyInputPrototype = Object.create(HTMLInputElement.prototype);
|
||||
|
||||
var inputId = 0;
|
||||
var supportsFloatingLabel = false;
|
||||
|
||||
if (Object.getOwnPropertyDescriptor && Object.defineProperty) {
|
||||
|
||||
|
@ -19,6 +20,7 @@
|
|||
}
|
||||
|
||||
Object.defineProperty(HTMLInputElement.prototype, 'value', descriptor);
|
||||
supportsFloatingLabel = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -43,6 +45,10 @@
|
|||
label.innerHTML = this.getAttribute('label') || '';
|
||||
label.classList.add('inputLabel');
|
||||
|
||||
if (!supportsFloatingLabel) {
|
||||
label.classList.add('nofloat');
|
||||
}
|
||||
|
||||
label.htmlFor = this.id;
|
||||
parentNode.insertBefore(label, this);
|
||||
|
||||
|
@ -74,15 +80,6 @@
|
|||
onChange.call(this);
|
||||
};
|
||||
|
||||
EmbyInputPrototype.detachedCallback = function () {
|
||||
|
||||
var observer = this.observer;
|
||||
if (observer) {
|
||||
observer.disconnect();
|
||||
this.observer = null;
|
||||
}
|
||||
};
|
||||
|
||||
document.registerElement('emby-input', {
|
||||
prototype: EmbyInputPrototype,
|
||||
extends: 'input'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue