提交 01a93320 编写于 作者: J Jesse Glick

No need to really wait the first time.

上级 6e874986
......@@ -40,13 +40,13 @@ function progressivelyRender(handler, callback) {
eval(callback)(r.data);
$$('#status .progress-bar-done')[0].style.width = (100 * r.status) + '%';
$$('#status .progress-bar-left')[0].style.width = (100 - 100 * r.status) + '%';
checkNewsLater();
checkNewsLater(500);
}
}
function checkNewsLater() {
function checkNewsLater(timeout) {
setTimeout(function() {
handler.news(checkNews);
}, 500);
}, timeout);
}
checkNewsLater();
checkNewsLater(0);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册