mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07:00
24 lines
492 B
JavaScript
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); |