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

switch to new CC url

This commit is contained in:
Luke Pulverenti 2014-09-18 00:50:21 -04:00
parent 1f6ce6a409
commit 698fe57e53
5 changed files with 21 additions and 6 deletions

View file

@ -29,7 +29,13 @@
$('.channelDownloadingList', page).html(html).trigger('create');
}
function loadPage(page, config, allChannelFeatures) {
function loadPage(page, config, allChannelFeatures, supporterInfo) {
if (supporterInfo.IsMBSupporter) {
$('#txtDownloadSizeLimit', page).attr('max', '100');
} else {
$('#txtDownloadSizeLimit', page).attr('max', '.5');
}
if (allChannelFeatures.length) {
$('.noChannelsHeader', page).hide();
@ -86,13 +92,15 @@
var promise1 = ApiClient.getNamedConfiguration("channels");
var promise2 = ApiClient.getJSON(ApiClient.getUrl("Channels/Features"));
var promise3 = Dashboard.getPluginSecurityInfo();
$.when(promise1, promise2).done(function (response1, response2) {
$.when(promise1, promise2, promise3).done(function (response1, response2, response3) {
var config = response1[0];
var allFeatures = response2[0];
var supporterInfo = response3;
loadPage(page, config, allFeatures);
loadPage(page, config, allFeatures, supporterInfo);
});