mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
sync updates
This commit is contained in:
parent
543d70fdf6
commit
a1a3326761
6 changed files with 31 additions and 15 deletions
|
@ -29,13 +29,7 @@
|
|||
$('.channelDownloadingList', page).html(html).trigger('create');
|
||||
}
|
||||
|
||||
function loadPage(page, config, allChannelFeatures, supporterInfo) {
|
||||
|
||||
if (supporterInfo.IsMBSupporter) {
|
||||
$('#txtDownloadSizeLimit', page).attr('max', '100');
|
||||
} else {
|
||||
$('#txtDownloadSizeLimit', page).attr('max', '.5');
|
||||
}
|
||||
function loadPage(page, config, allChannelFeatures) {
|
||||
|
||||
if (allChannelFeatures.length) {
|
||||
$('.noChannelsHeader', page).hide();
|
||||
|
@ -92,15 +86,13 @@
|
|||
|
||||
var promise1 = ApiClient.getNamedConfiguration("channels");
|
||||
var promise2 = ApiClient.getJSON(ApiClient.getUrl("Channels/Features"));
|
||||
var promise3 = Dashboard.getPluginSecurityInfo();
|
||||
|
||||
$.when(promise1, promise2, promise3).done(function (response1, response2, response3) {
|
||||
$.when(promise1, promise2).done(function (response1, response2) {
|
||||
|
||||
var config = response1[0];
|
||||
var allFeatures = response2[0];
|
||||
var supporterInfo = response3;
|
||||
|
||||
loadPage(page, config, allFeatures, supporterInfo);
|
||||
loadPage(page, config, allFeatures);
|
||||
|
||||
});
|
||||
|
||||
|
|
|
@ -232,13 +232,15 @@
|
|||
if (context == 'movies') {
|
||||
$('.collectionTabs', page).hide();
|
||||
$('.movieTabs', page).show();
|
||||
|
||||
// TODO: Improve in the future to limit scope
|
||||
query.ParentId = null;
|
||||
} else {
|
||||
$('.collectionTabs', page).show();
|
||||
$('.movieTabs', page).hide();
|
||||
query.ParentId = LibraryMenu.getTopParentId();
|
||||
}
|
||||
|
||||
//query.ParentId = LibraryMenu.getTopParentId();
|
||||
|
||||
var limit = LibraryBrowser.getDefaultPageSize();
|
||||
|
||||
// If the default page size has changed, the start index will have to be reset
|
||||
|
|
|
@ -246,6 +246,15 @@
|
|||
|
||||
var page = this;
|
||||
|
||||
Dashboard.getPluginSecurityInfo().done(function (pluginSecurityInfo) {
|
||||
|
||||
if (pluginSecurityInfo.IsMBSupporter) {
|
||||
$('.syncPromotion', page).hide();
|
||||
} else {
|
||||
$('.syncPromotion', page).show();
|
||||
}
|
||||
});
|
||||
|
||||
reloadData(page);
|
||||
|
||||
// on here
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue