mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-05 23:38:45 +01:00
add about page to help section
This commit is contained in:
24
MediaBrowser.WebDashboard/Html/scripts/aboutPage.js
Normal file
24
MediaBrowser.WebDashboard/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);
|
||||
Reference in New Issue
Block a user