mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
progress on movies home page
This commit is contained in:
parent
89472754ad
commit
ae312524dd
7 changed files with 103 additions and 45 deletions
|
@ -1,24 +1,12 @@
|
|||
var AboutPage = {
|
||||
(function ($, document) {
|
||||
|
||||
onPageShow: function () {
|
||||
AboutPage.pollForInfo();
|
||||
},
|
||||
$(document).on('pageshow', "#aboutPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
ApiClient.getSystemInfo().done(function(info) {
|
||||
$('#appVersionNumber', page).html(info.Version);
|
||||
});
|
||||
});
|
||||
|
||||
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);
|
||||
})(jQuery, document);
|
Loading…
Add table
Add a link
Reference in a new issue