修复alert
This commit is contained in:
parent
0c17e99f53
commit
ec14f305cb
|
@ -227,7 +227,7 @@
|
|||
}
|
||||
function send_msg() {
|
||||
if (document.getElementById("input-card").value.length < 10) {
|
||||
window.parent.alert("评论内容不能少于10个字")
|
||||
alert("评论内容不能少于10个字")
|
||||
return
|
||||
}
|
||||
if (logined == 0) {
|
||||
|
@ -243,7 +243,7 @@
|
|||
if (xhr.readyState == 4 && xhr.status == 200) {
|
||||
var obj = JSON.parse(xhr.responseText);
|
||||
if (obj.code == 1) {
|
||||
window.parent.alert(obj.msg)
|
||||
alert(obj.msg)
|
||||
document.getElementsByClassName("send-btn")[0].removeAttribute("loading")
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue