提交 e630819f 编写于 作者: J Jesse Glick

Using ts_refresh to resort properly.

上级 c6f17d09
......@@ -37,13 +37,14 @@ THE SOFTWARE.
</h1>
<script>
function display(data) {
var p = document.getElementById('people');
for (var x = 0; data.length > x; x++) {
var e = data[x];
var r = document.getElementById('person-' + e.id);
if (r == null) {
r = document.createElement('tr');
r.id = e.id;
document.getElementById('people').appendChild(r);
p.appendChild(r);
}
var d = document.createElement('td');
......@@ -85,6 +86,8 @@ THE SOFTWARE.
d.appendChild(a);
}
r.appendChild(d);
ts_refresh(p);
}
}
</script>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册