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

24 lines
540 B
JavaScript
Raw Normal View History

2013-03-14 21:42:18 -05:00
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);