mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix metadata manager layout
This commit is contained in:
parent
994b8ec70b
commit
a878877550
26 changed files with 2939 additions and 500 deletions
|
@ -185,7 +185,7 @@
|
|||
$('#fldPlayers', page).hide();
|
||||
}
|
||||
|
||||
if (item.Type == "Movie" || item.Type == "Trailer" || item.Type == "MusicVideo" || item.Type == "Series" || item.Type == "Game") {
|
||||
if (item.Type == "Movie" || item.Type == "Trailer") {
|
||||
$('#fldCriticRating', page).show();
|
||||
$('#fldCriticRatingSummary', page).show();
|
||||
} else {
|
||||
|
@ -320,14 +320,14 @@
|
|||
}
|
||||
|
||||
if (item.Type == "Person") {
|
||||
page.querySelector('#txtPremiereDate').label = Globalize.translate('LabelBirthDate');
|
||||
page.querySelector('#txtProductionYear').label = Globalize.translate('LabelBirthYear');
|
||||
page.querySelector('#txtEndDate').label = Globalize.translate('LabelDeathDate');
|
||||
page.querySelector("label[for='txtPremiereDate']").innerHTML = Globalize.translate('LabelBirthDate');
|
||||
page.querySelector("label[for='txtEndDate']").innerHTML = Globalize.translate('LabelDeathDate');
|
||||
$('#fldPlaceOfBirth', page).show();
|
||||
} else {
|
||||
page.querySelector('#txtPremiereDate').label = Globalize.translate('LabelReleaseDate');
|
||||
page.querySelector('#txtProductionYear').label = Globalize.translate('LabelYear');
|
||||
page.querySelector('#txtEndDate').label = Globalize.translate('LabelEndDate');
|
||||
page.querySelector("label[for='txtPremiereDate']").innerHTML = Globalize.translate('LabelReleaseDate');
|
||||
page.querySelector("label[for='txtEndDate']").innerHTML = Globalize.translate('LabelEndDate');
|
||||
$('#fldPlaceOfBirth', page).hide();
|
||||
}
|
||||
|
||||
|
@ -444,7 +444,7 @@
|
|||
|
||||
$('#txtPath', page).val(item.Path || '');
|
||||
$('#txtName', page).val(item.Name || "");
|
||||
$('#txtOverview', page).val(item.Overview || "");
|
||||
page.querySelector('#txtOverview').value = item.Overview || '';
|
||||
$('#txtShortOverview', page).val(item.ShortOverview || "");
|
||||
$('#txtTagline', page).val((item.Taglines && item.Taglines.length ? item.Taglines[0] : ''));
|
||||
$('#txtSortName', page).val(item.ForcedSortName || "");
|
||||
|
@ -528,7 +528,8 @@
|
|||
}
|
||||
|
||||
$('#txtProductionYear', page).val(item.ProductionYear || "");
|
||||
$('#txtAirTime', page).val(item.AirTime || "");
|
||||
|
||||
$('#txtAirTime', page).val(item.AirTime || '');
|
||||
|
||||
var placeofBirth = item.ProductionLocations && item.ProductionLocations.length ? item.ProductionLocations[0] : '';
|
||||
$('#txtPlaceOfBirth', page).val(placeofBirth);
|
||||
|
@ -1484,6 +1485,7 @@
|
|||
|
||||
}).on('tabchange', function () {
|
||||
var selected = this.selected;
|
||||
|
||||
showTab(page, selected);
|
||||
loadTab(page, parseInt(this.selected));
|
||||
});
|
||||
|
@ -1519,7 +1521,7 @@
|
|||
tabs.noSlide = true;
|
||||
tabs.noink = true;
|
||||
|
||||
$(ownerpage).on('pagebeforeshow', function () {
|
||||
$(ownerpage).on('pageshowready', function () {
|
||||
|
||||
var selected = tabs.selected;
|
||||
|
||||
|
@ -1532,7 +1534,6 @@
|
|||
Logger.log('selected tab will be ' + selected);
|
||||
|
||||
tabs.selected = selected;
|
||||
Events.trigger(tabs, 'tabchange');
|
||||
|
||||
} else {
|
||||
Events.trigger(tabs, 'tabchange');
|
||||
|
|
|
@ -67,17 +67,15 @@
|
|||
setInitialCollapsibleState(page, item, context, user);
|
||||
renderDetails(page, item, context);
|
||||
|
||||
var hasBackdrop = LibraryBrowser.renderDetailPageBackdrop(page, item);
|
||||
var hasBackdrop = false;
|
||||
|
||||
// For these types, make the backdrop a little smaller so that the items are more quickly accessible
|
||||
if (item.Type == 'MusicArtist' || item.Type == "MusicAlbum" || item.Type == "Playlist" || item.Type == "BoxSet" || item.Type == "Audio") {
|
||||
$('#itemBackdrop', page).addClass('noBackdrop').css('background-image', 'none');
|
||||
Backdrops.setBackdrops(page, [item]);
|
||||
}
|
||||
else if (item.Type == "Season" || item.Type == "Series") {
|
||||
page.querySelector('#itemBackdrop').classList.add('smallBackdrop');
|
||||
} else {
|
||||
page.querySelector('#itemBackdrop').classList.remove('smallBackdrop');
|
||||
else {
|
||||
hasBackdrop = LibraryBrowser.renderDetailPageBackdrop(page, item);
|
||||
}
|
||||
|
||||
var transparentHeader = hasBackdrop && page.classList.contains('noSecondaryNavPage');
|
||||
|
|
|
@ -160,28 +160,32 @@
|
|||
return true;
|
||||
}
|
||||
|
||||
$(pages).on('swipeleft', function (e) {
|
||||
require(['hammer'], function (Hammer) {
|
||||
|
||||
if (allowSwipe(e)) {
|
||||
var selected = parseInt(pages.selected || '0');
|
||||
if (selected < (pageCount - 1)) {
|
||||
pages.entryAnimation = 'slide-from-right-animation';
|
||||
pages.exitAnimation = 'slide-left-animation';
|
||||
tabs.selectNext();
|
||||
var hammertime = new Hammer(pages);
|
||||
hammertime.get('swipe').set({ direction: Hammer.DIRECTION_HORIZONTAL });
|
||||
|
||||
hammertime.on('swipeleft', function (e) {
|
||||
if (allowSwipe(e)) {
|
||||
var selected = parseInt(pages.selected || '0');
|
||||
if (selected < (pageCount - 1)) {
|
||||
pages.entryAnimation = 'slide-from-right-animation';
|
||||
pages.exitAnimation = 'slide-left-animation';
|
||||
tabs.selectNext();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$(pages).on('swiperight', function (e) {
|
||||
|
||||
if (allowSwipe(e)) {
|
||||
var selected = parseInt(pages.selected || '0');
|
||||
if (selected > 0) {
|
||||
pages.entryAnimation = 'slide-from-left-animation';
|
||||
pages.exitAnimation = 'slide-right-animation';
|
||||
tabs.selectPrevious();
|
||||
hammertime.on('swiperight', function (e) {
|
||||
if (allowSwipe(e)) {
|
||||
var selected = parseInt(pages.selected || '0');
|
||||
if (selected > 0) {
|
||||
pages.entryAnimation = 'slide-from-left-animation';
|
||||
pages.exitAnimation = 'slide-right-animation';
|
||||
tabs.selectPrevious();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
@ -47,8 +47,8 @@ var Dashboard = {
|
|||
$.mobile.panel.prototype.options.classes.modalOpen = "largePanelModalOpen ui-panel-dismiss-open";
|
||||
$.mobile.panel.prototype.options.classes.panel = "largePanel ui-panel";
|
||||
|
||||
$.event.special.swipe.verticalDistanceThreshold = 40;
|
||||
$.mobile.page.prototype.options.domCache = true;
|
||||
//$.event.special.swipe.verticalDistanceThreshold = 40;
|
||||
//$.mobile.page.prototype.options.domCache = true;
|
||||
|
||||
|
||||
|
||||
|
@ -2108,6 +2108,10 @@ var AppInfo = {};
|
|||
return {};
|
||||
});
|
||||
|
||||
define("hammer", ["bower_components/hammerjs/hammer.min"], function (Hammer) {
|
||||
return Hammer;
|
||||
});
|
||||
|
||||
$.extend(AppInfo, Dashboard.getAppInfo(appName, deviceId, deviceName));
|
||||
|
||||
var drawer = document.querySelector('.mainDrawerPanel');
|
||||
|
@ -2285,6 +2289,7 @@ $(document).on('pagecreate', ".page", function () {
|
|||
var isSettingsPage = page.classList.contains('type-interior');
|
||||
|
||||
if (isSettingsPage) {
|
||||
require(['jqmicons']);
|
||||
Dashboard.ensureToolsMenu(page);
|
||||
|
||||
Dashboard.getCurrentUser().done(function (user) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue