1
0
Fork 0
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:
Luke Pulverenti 2013-04-01 11:59:56 -04:00
parent 89472754ad
commit ae312524dd
7 changed files with 103 additions and 45 deletions

View file

@ -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);