mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Hide AlphaPicker on Search page for real TVs
This commit is contained in:
parent
b0531085af
commit
59efc60c47
1 changed files with 2 additions and 8 deletions
|
@ -62,19 +62,13 @@ import template from './searchfields.template.html';
|
||||||
}
|
}
|
||||||
|
|
||||||
function embed(elem, instance) {
|
function embed(elem, instance) {
|
||||||
let html = globalize.translateHtml(template, 'core');
|
elem.innerHTML = globalize.translateHtml(template, 'core');
|
||||||
|
|
||||||
if (browser.tizen || browser.orsay) {
|
|
||||||
html = html.replace('<input ', '<input readonly ');
|
|
||||||
}
|
|
||||||
|
|
||||||
elem.innerHTML = html;
|
|
||||||
|
|
||||||
elem.classList.add('searchFields');
|
elem.classList.add('searchFields');
|
||||||
|
|
||||||
const txtSearch = elem.querySelector('.searchfields-txtSearch');
|
const txtSearch = elem.querySelector('.searchfields-txtSearch');
|
||||||
|
|
||||||
if (layoutManager.tv) {
|
if (layoutManager.tv && !browser.tv) {
|
||||||
const alphaPickerElement = elem.querySelector('.alphaPicker');
|
const alphaPickerElement = elem.querySelector('.alphaPicker');
|
||||||
|
|
||||||
elem.querySelector('.alphaPicker').classList.remove('hide');
|
elem.querySelector('.alphaPicker').classList.remove('hide');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue