提交 2efb002c 编写于 作者: J Jesse Glick

Merge pull request #1527 from jglick/refreshPart-robustness

Error recovery in refreshPart
......@@ -1478,7 +1478,10 @@ function refreshPart(id,url) {
new Ajax.Request(url, {
onSuccess: function(rsp) {
var hist = $(id);
if (hist==null) console.log("There's no element that has ID of "+id)
if (hist == null) {
console.log("There's no element that has ID of " + id);
return;
}
var p = hist.up();
var div = document.createElement('div');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册