mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update dialogs
This commit is contained in:
parent
ddcc2b874c
commit
88bf479a19
48 changed files with 214 additions and 249 deletions
|
@ -658,13 +658,8 @@
|
|||
html += '</div>';
|
||||
|
||||
dlg.innerHTML = html;
|
||||
document.body.appendChild(dlg);
|
||||
|
||||
// Seeing an issue in Firefox and IE where it's initially visible in the bottom right, then moves to the center
|
||||
var delay = browser.animate ? 0 : 100;
|
||||
setTimeout(function () {
|
||||
dialogHelper.open(dlg);
|
||||
}, delay);
|
||||
dialogHelper.open(dlg);
|
||||
|
||||
function onSortByChange() {
|
||||
var newValue = this.value;
|
||||
|
|
|
@ -37,6 +37,8 @@
|
|||
ApiClient.getLiveTvRecordings(query) :
|
||||
params.type == 'RecordingSeries' ?
|
||||
ApiClient.getLiveTvRecordingSeries(query) :
|
||||
params.IsAiring == 'true' ?
|
||||
ApiClient.getLiveTvRecommendedPrograms(query) :
|
||||
ApiClient.getLiveTvPrograms(query);
|
||||
|
||||
promise.then(function (result) {
|
||||
|
@ -66,7 +68,8 @@
|
|||
showParentTitle: query.IsSeries !== false && !query.IsMovie,
|
||||
showProgramAirInfo: params.type != 'Recordings' && params.type != 'RecordingSeries',
|
||||
overlayMoreButton: true,
|
||||
showYear: query.IsMovie && params.type == 'Recordings'
|
||||
showYear: query.IsMovie && params.type == 'Recordings',
|
||||
coverImage: true
|
||||
});
|
||||
|
||||
var elem = page.querySelector('.itemsContainer');
|
||||
|
@ -133,14 +136,20 @@
|
|||
else if (params.IsKids == 'false') {
|
||||
query.IsKids = false;
|
||||
}
|
||||
if (params.IsAiring == 'true') {
|
||||
query.IsAiring = true;
|
||||
}
|
||||
else if (params.IsAiring == 'false') {
|
||||
query.IsAiring = false;
|
||||
}
|
||||
|
||||
if (params.type == 'Recordings') {
|
||||
|
||||
if (params.IsMovie) {
|
||||
if (params.IsMovie == 'true') {
|
||||
LibraryMenu.setTitle(Globalize.translate('TabMovies'));
|
||||
} else if (params.IsSports) {
|
||||
} else if (params.IsSports == 'true') {
|
||||
LibraryMenu.setTitle(Globalize.translate('Sports'));
|
||||
} else if (params.IsKids) {
|
||||
} else if (params.IsKids == 'true') {
|
||||
LibraryMenu.setTitle(Globalize.translate('HeaderForKids'));
|
||||
} else {
|
||||
LibraryMenu.setTitle(Globalize.translate('TabRecordings'));
|
||||
|
@ -151,12 +160,14 @@
|
|||
LibraryMenu.setTitle(Globalize.translate('TabSeries'));
|
||||
} else {
|
||||
|
||||
if (params.IsMovie) {
|
||||
if (params.IsMovie == 'true') {
|
||||
LibraryMenu.setTitle(Globalize.translate('HeaderUpcomingMovies'));
|
||||
} else if (params.IsSports) {
|
||||
} else if (params.IsSports == 'true') {
|
||||
LibraryMenu.setTitle(Globalize.translate('HeaderUpcomingSports'));
|
||||
} else if (params.IsKids) {
|
||||
} else if (params.IsKids == 'true') {
|
||||
LibraryMenu.setTitle(Globalize.translate('HeaderUpcomingForKids'));
|
||||
} else if (params.IsAiring == 'true') {
|
||||
LibraryMenu.setTitle(Globalize.translate('HeaderWhatsOnTV'));
|
||||
} else {
|
||||
LibraryMenu.setTitle(Globalize.translate('HeaderUpcomingPrograms'));
|
||||
}
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
limit: limit,
|
||||
ImageTypeLimit: 1,
|
||||
EnableImageTypes: "Primary",
|
||||
EnableTotalRecordCount: false,
|
||||
Fields: "ChannelInfo"
|
||||
|
||||
}).then(function (result) {
|
||||
|
|
|
@ -180,8 +180,6 @@
|
|||
html += '</div>';
|
||||
dlg.innerHTML = html;
|
||||
|
||||
document.body.appendChild(dlg);
|
||||
|
||||
var chkMirror = dlg.querySelector('.chkMirror');
|
||||
|
||||
if (chkMirror) {
|
||||
|
|
|
@ -128,7 +128,6 @@
|
|||
html += '</div>';
|
||||
|
||||
dlg.innerHTML = html;
|
||||
document.body.appendChild(dlg);
|
||||
|
||||
// Has to be assigned a z-index after the call to .open()
|
||||
dlg.addEventListener('close', function (e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue