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

.className, not .class.

上级 4f7b5f3b
......@@ -35,7 +35,7 @@ function progressivelyRender(handler, callback) {
} else if (r.status == 'error') {
$$('#status .progress-bar-done')[0].style.width = '100%';
$$('#status .progress-bar-left')[0].style.width = '0%';
$('status').class = 'progress-bar red'; // XXX does not seem to work
$('status').className = 'progress-bar red';
} else {
eval(callback)(r.data);
$$('#status .progress-bar-done')[0].style.width = (100 * r.status) + '%';
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册