Update xmlCap.js

This commit is contained in:
Val
2018-11-08 09:48:52 -05:00
committed by GitHub
parent d423435159
commit 9fb25b4c22

View File

@@ -13,11 +13,11 @@ function captureXML() {
if (xhr.status >= 200 && xhr.status < 400) {
var data = xhr.responseXML.getElementsByTagName('expense');
content += '<table><tr><th colspan="3">COMPANY EXPENSE</th></tr>';
content += '<tr><th>Category</th><th>Group</th>File<br>for<br>Tax</th></tr>';
content += '<tr><th>Category</th><th>Group</th><th>File<br>for<br>Tax</th></tr>';
for (var d = 0; d < data.length; d++) {
var checked = (data[d].childNodes[2].textContent == 'true') ? ' checked' : '';
content += '<tr><td>' + data[d].childNodes[0].textContent + '</td>';
content += '<td>' + data[d].childNodes[1].textContent + '</td>';
var checked = (data[d].childNodes[3].textContent == 'true') ? ' checked' : '';
content += '<tr><td>' + data[d].childNodes[1].textContent + '</td>';
content += '<td>' + data[d].childNodes[2].textContent + '</td>';
content += '<td><input type="checkbox"' + checked + '></td></tr>';
}
content += '</table>';