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

add about page to help section

This commit is contained in:
Chris Schneider 2013-03-14 21:42:18 -05:00
parent 10248a3aeb
commit 3d362588eb
7 changed files with 66 additions and 2 deletions

24
Html/scripts/aboutPage.js Normal file
View file

@ -0,0 +1,24 @@
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);