Skip to content

Commit d84d0bc

Browse files
committed
v0.21
1 parent 3802f59 commit d84d0bc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

war/Single.jsp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,11 @@
310310
var url = '/comment?picID='+'<%=picID%>'+'&comment=' + comment;
311311
xmlhttp.open("GET", url, true);
312312
xmlhttp.send();
313-
loadComment();
314-
load(myArr);
313+
xmlhttp.onreadystatechange = function() {
314+
if (xmlhttp.readyState % 5 == 4 && xmlhttp.status == 200) {
315+
loadComment();
316+
}
317+
}
315318
}
316319
function deleteComment() {
317320

0 commit comments

Comments
 (0)