jellyfin/MediaBrowser.WebDashboard/Html/scripts/aboutPage.js
2013-03-15 00:23:07 -04:00

24 lines
492 B
JavaScript

var AboutPage = {
onPageShow: function () {
AboutPage.pollForInfo();
},
pollForInfo: function () {
ApiClient.getSystemInfo().done(AboutPage.renderInfo);
},
renderInfo: function (info) {
AboutPage.renderSystemInfo(info);
},
renderSystemInfo: function (info) {
var page = $.mobile.activePage;
$('#appVersionNumber', page).html(info.Version);
},
};
$(document).on('pageshow', "#aboutPage", AboutPage.onPageShow);