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:
parent
10248a3aeb
commit
3d362588eb
7 changed files with 66 additions and 2 deletions
24
Html/scripts/aboutPage.js
Normal file
24
Html/scripts/aboutPage.js
Normal 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);
|
Loading…
Add table
Add a link
Reference in a new issue