- tr.innerHTML = String.format(
- '<td class="cbi-section-table-cell">%s</td>' +
- '<td class="cbi-section-table-cell">%d</td>' +
- '<td class="cbi-section-table-cell">%s</td>' +
- '<td class="cbi-section-table-cell">%d</td>' +
- '<td class="cbi-section-table-cell">' +
- '<input class="cbi-input-remove" type="button" value="<%:Delete Redirect%>" onclick="upnp_delete_fwd(%d)" />' +
- '</td>',
- st[i].proto,
- st[i].extport,
- st[i].intaddr,
- st[i].intport,
+ tr.insertCell(-1).innerHTML = st[i].proto;
+ tr.insertCell(-1).innerHTML = st[i].extport;
+ tr.insertCell(-1).innerHTML = st[i].intaddr;
+ tr.insertCell(-1).innerHTML = st[i].intport;
+
+ tr.insertCell(-1).innerHTML = String.format(
+ '<input class="cbi-input-remove" type="button" value="<%:Delete Redirect%>" onclick="upnp_delete_fwd(%d)" />',