mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-02-15 17:12:23 +00:00
24 lines
540 B
JavaScript
24 lines
540 B
JavaScript
var AboutPage = {
|
|
|
|
onPageShow: function () {
|
|
AboutPage.pollForInfo();
|
|
},
|
|
|
|
|
|
pollForInfo: function () {
|
|
$.getJSON("dashboardInfo").done(AboutPage.renderInfo);
|
|
},
|
|
|
|
renderInfo: function (dashboardInfo) {
|
|
AboutPage.renderSystemInfo(dashboardInfo);
|
|
},
|
|
|
|
|
|
renderSystemInfo: function (dashboardInfo) {
|
|
var page = $.mobile.activePage;
|
|
$('#appVersionNumber', page).html(dashboardInfo.SystemInfo.Version);
|
|
},
|
|
|
|
};
|
|
|
|
$(document).on('pageshow', "#aboutPage", AboutPage.onPageShow); |