2013-03-15 02:42:18 +00:00
|
|
|
|
var AboutPage = {
|
|
|
|
|
|
|
|
|
|
onPageShow: function () {
|
|
|
|
|
AboutPage.pollForInfo();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pollForInfo: function () {
|
2013-03-15 04:23:07 +00:00
|
|
|
|
ApiClient.getSystemInfo().done(AboutPage.renderInfo);
|
2013-03-15 02:42:18 +00:00
|
|
|
|
},
|
|
|
|
|
|
2013-03-15 04:23:07 +00:00
|
|
|
|
renderInfo: function (info) {
|
|
|
|
|
AboutPage.renderSystemInfo(info);
|
2013-03-15 02:42:18 +00:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
2013-03-15 04:23:07 +00:00
|
|
|
|
renderSystemInfo: function (info) {
|
2013-03-15 02:42:18 +00:00
|
|
|
|
var page = $.mobile.activePage;
|
2013-03-15 04:23:07 +00:00
|
|
|
|
$('#appVersionNumber', page).html(info.Version);
|
2013-03-15 02:42:18 +00:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$(document).on('pageshow', "#aboutPage", AboutPage.onPageShow);
|