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

added first play to classes

This commit is contained in:
Luke Pulverenti 2014-02-26 16:31:47 -05:00
parent 0b238590fc
commit b066cb5d7a
7 changed files with 30 additions and 24 deletions

View file

@ -417,14 +417,29 @@
$('.btnRestartContainer', page).addClass('hide');
}
DashboardPage.renderApplicationUpdateInfo(dashboardInfo);
DashboardPage.renderPluginUpdateInfo(dashboardInfo);
DashboardPage.renderPendingInstallations(dashboardInfo.SystemInfo);
DashboardPage.renderUrls(page, dashboardInfo.SystemInfo);
DashboardPage.renderApplicationUpdateInfo(page, dashboardInfo);
DashboardPage.renderPluginUpdateInfo(page, dashboardInfo);
DashboardPage.renderPendingInstallations(page, dashboardInfo.SystemInfo);
},
renderUrls: function (page, systemInfo) {
var url = ApiClient.serverAddress() + "/mediabrowser";
$('#bookmarkUrl', page).html(url).attr("href", url);
if (systemInfo.WanAddress) {
var externalUrl = systemInfo.WanAddress + "/mediabrowser";
$('.externalUrl', page).html('Remote access: <a href="' + externalUrl + '" target="_blank">' + externalUrl + '</a>').show().trigger('create');
} else {
$('.externalUrl', page).hide();
}
},
renderApplicationUpdateInfo: function (dashboardInfo) {
var page = $.mobile.activePage;
renderApplicationUpdateInfo: function (page, dashboardInfo) {
$('#updateFail', page).hide();
@ -478,9 +493,7 @@
}
},
renderPendingInstallations: function (systemInfo) {
var page = $.mobile.activePage;
renderPendingInstallations: function (page, systemInfo) {
if (systemInfo.CompletedInstallations.length) {
@ -504,7 +517,7 @@
$('#pendingInstallations', page).html(html);
},
renderPluginUpdateInfo: function (dashboardInfo) {
renderPluginUpdateInfo: function (page, dashboardInfo) {
// Only check once every 10 mins
if (DashboardPage.lastPluginUpdateCheck && (new Date().getTime() - DashboardPage.lastPluginUpdateCheck) < 600000) {
@ -513,8 +526,6 @@
DashboardPage.lastPluginUpdateCheck = new Date().getTime();
var page = $.mobile.activePage;
ApiClient.getAvailablePluginUpdates().done(function (updates) {
var elem = $('#pPluginUpdates', page);