1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

converted season providers

This commit is contained in:
Luke Pulverenti 2014-02-03 00:35:43 -05:00
parent 30cf916fa2
commit 78cb9d70da

View file

@ -286,7 +286,8 @@
loadTabs(page, [ loadTabs(page, [
{ name: 'Game', type: 'Game' }, { name: 'Game', type: 'Game' },
{ name: 'Game System', type: 'GameSystem' } { name: 'Game System', type: 'GameSystem' },
{ name: 'Game Genre', type: 'GameGenre' }
]); ]);
$('.gamesTab', page).addClass('ui-btn-active'); $('.gamesTab', page).addClass('ui-btn-active');
@ -320,7 +321,8 @@
{ name: 'Artist', type: 'MusicArtist' }, { name: 'Artist', type: 'MusicArtist' },
{ name: 'Album', type: 'MusicAlbum' }, { name: 'Album', type: 'MusicAlbum' },
{ name: 'Song', type: 'Audio' }, { name: 'Song', type: 'Audio' },
{ name: 'Music Video', type: 'MusicVideo' } { name: 'Music Video', type: 'MusicVideo' },
{ name: 'Music Genre', type: 'MusicGenre' }
]); ]);
$('.musicTab', page).addClass('ui-btn-active'); $('.musicTab', page).addClass('ui-btn-active');
@ -331,8 +333,6 @@
{ name: 'Person', type: 'Person' }, { name: 'Person', type: 'Person' },
{ name: 'Genre', type: 'Genre' }, { name: 'Genre', type: 'Genre' },
{ name: 'Game Genre', type: 'GameGenre' },
{ name: 'Music Genre', type: 'MusicGenre' },
{ name: 'Studio', type: 'Studio' }, { name: 'Studio', type: 'Studio' },
{ name: 'Book', type: 'Book' }, { name: 'Book', type: 'Book' },
{ name: 'Adult Video', type: 'AdultVideo' } { name: 'Adult Video', type: 'AdultVideo' }
@ -362,12 +362,18 @@
}); });
if ($('.backdropFields:visible', form).length) { if ($('.backdropFields:visible', form).length) {
config.ImageOptions.push({ config.ImageOptions.push({
Type: 'Backdrop', Type: 'Backdrop',
Limit: $('#txtMaxBackdrops', form).val(), Limit: $('#txtMaxBackdrops', form).val(),
MinWidth: $('#txtMinBackdropDownloadWidth', form).val() MinWidth: $('#txtMinBackdropDownloadWidth', form).val()
}); });
} else {
config.ImageOptions.push({
Type: 'Backdrop',
Limit: 0,
MinWidth: 0
});
} }
if ($('.screenshotFields:visible', form).length) { if ($('.screenshotFields:visible', form).length) {
@ -377,6 +383,12 @@
Limit: $('#txtMaxScreenshots', form).val(), Limit: $('#txtMaxScreenshots', form).val(),
MinWidth: $('#txtMinScreenshotDownloadWidth', form).val() MinWidth: $('#txtMinScreenshotDownloadWidth', form).val()
}); });
} else {
config.ImageOptions.push({
Type: 'Screenshot',
Limit: 0,
MinWidth: 0
});
} }
} }