=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/scripts/app.js' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/scripts/app.js 2015-04-25 11:22:40 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/scripts/app.js 2015-04-25 12:28:25 +0000 @@ -1931,10 +1931,20 @@ var info = Ext.decode(r.responseText), divStyle = 'padding:3px'; - html += '
Data was updated: ' + info.intervalSinceLastAnalyticsTableSuccess + ' ago
'; - html += '
Version: ' + info.version + '
'; - html += '
Revision: ' + info.revision + '
'; - html += '
Build time: ' + info.buildTime.slice(0,19).replace('T', ' ') + '
'; + if (Ext.isObject(info)) { + html += '
Data was updated: ' + info.intervalSinceLastAnalyticsTableSuccess + ' ago
'; + html += '
Version: ' + info.version + '
'; + html += '
Revision: ' + info.revision + '
'; + html += '
Build time: ' + info.buildTime.slice(0,19).replace('T', ' ') + '
'; + } + else { + html += 'No system info found'; + } + + w.update(html); + }, + failure: function(r) { + html += r.status + '\n' + r.statusText + '\n' + r.responseText; w.update(html); }