Commit e7ba65be1c04ebdcfe44e732cd255a00d53fd6b1
1 parent
d5af56bc
update
Showing
3 changed files
with
12 additions
and
12 deletions
src/main/resources/templates/page/comment.html
| @@ -393,7 +393,7 @@ | @@ -393,7 +393,7 @@ | ||
| 393 | var rows = $("[name=btSelectItem]:checkbox:checked"); | 393 | var rows = $("[name=btSelectItem]:checkbox:checked"); |
| 394 | if (rows.length > 0) { | 394 | if (rows.length > 0) { |
| 395 | var r=confirm("您确定拒绝选中的"+rows.length+"条评论吗?"); | 395 | var r=confirm("您确定拒绝选中的"+rows.length+"条评论吗?"); |
| 396 | - if(r==true){ | 396 | + if(r == true){ |
| 397 | var ids = ""; | 397 | var ids = ""; |
| 398 | rows.each(function(i,e){ | 398 | rows.each(function(i,e){ |
| 399 | ids = ids + "," + e.value; | 399 | ids = ids + "," + e.value; |
| @@ -410,19 +410,19 @@ | @@ -410,19 +410,19 @@ | ||
| 410 | if(status==1){ | 410 | if(status==1){ |
| 411 | $.post("/comments/pass?ids="+ids,function (data) { | 411 | $.post("/comments/pass?ids="+ids,function (data) { |
| 412 | if (data.errorCode==0){ | 412 | if (data.errorCode==0){ |
| 413 | - alert("操作成功"); | 413 | + alert(data.errorMessage); |
| 414 | location.href = location.href; | 414 | location.href = location.href; |
| 415 | } else{ | 415 | } else{ |
| 416 | - alert("操作失败"); | 416 | + alert(data.errorMessage); |
| 417 | } | 417 | } |
| 418 | }) | 418 | }) |
| 419 | }else{ | 419 | }else{ |
| 420 | $.post("/comments/refuse?ids="+ids,function (data) { | 420 | $.post("/comments/refuse?ids="+ids,function (data) { |
| 421 | if (data.errorCode==0){ | 421 | if (data.errorCode==0){ |
| 422 | - alert("操作成功"); | 422 | + alert(data.errorMessage); |
| 423 | location.href = location.href; | 423 | location.href = location.href; |
| 424 | } else{ | 424 | } else{ |
| 425 | - alert("操作失败"); | 425 | + alert(data.errorMessage); |
| 426 | } | 426 | } |
| 427 | }) | 427 | }) |
| 428 | } | 428 | } |
src/main/resources/templates/page/commentDetail.html
| @@ -180,7 +180,7 @@ | @@ -180,7 +180,7 @@ | ||
| 180 | //location.href = history.back(); | 180 | //location.href = history.back(); |
| 181 | self.location=document.referrer; | 181 | self.location=document.referrer; |
| 182 | } else{ | 182 | } else{ |
| 183 | - alert("操作失败"); | 183 | + alert(data.errorMessage); |
| 184 | } | 184 | } |
| 185 | }) | 185 | }) |
| 186 | }else{ | 186 | }else{ |
| @@ -189,7 +189,7 @@ | @@ -189,7 +189,7 @@ | ||
| 189 | //location.href = history.back(); | 189 | //location.href = history.back(); |
| 190 | self.location=document.referrer; | 190 | self.location=document.referrer; |
| 191 | } else{ | 191 | } else{ |
| 192 | - alert("操作失败"); | 192 | + alert(data.errorMessage); |
| 193 | } | 193 | } |
| 194 | }) | 194 | }) |
| 195 | } | 195 | } |
src/main/resources/templates/page/videoDetail.html
| @@ -223,7 +223,7 @@ | @@ -223,7 +223,7 @@ | ||
| 223 | }); | 223 | }); |
| 224 | 224 | ||
| 225 | //弹出框取消 | 225 | //弹出框取消 |
| 226 | - $("#action_note_no").click(function () { | 226 | + $("#action_note_no, .close").click(function () { |
| 227 | $("#action_note").hide(); | 227 | $("#action_note").hide(); |
| 228 | }); | 228 | }); |
| 229 | //弹出框确认 | 229 | //弹出框确认 |
| @@ -251,10 +251,10 @@ | @@ -251,10 +251,10 @@ | ||
| 251 | }, | 251 | }, |
| 252 | function (data) { | 252 | function (data) { |
| 253 | if (data.errorCode==0){ | 253 | if (data.errorCode==0){ |
| 254 | - alert("操作成功"); | 254 | + alert(data.errorMessage); |
| 255 | location.href = location.href; | 255 | location.href = location.href; |
| 256 | } else{ | 256 | } else{ |
| 257 | - alert("操作失败"); | 257 | + alert(data.errorMessage); |
| 258 | } | 258 | } |
| 259 | }) | 259 | }) |
| 260 | } | 260 | } |
| @@ -276,10 +276,10 @@ | @@ -276,10 +276,10 @@ | ||
| 276 | }, | 276 | }, |
| 277 | function (data) { | 277 | function (data) { |
| 278 | if (data.errorCode==0){ | 278 | if (data.errorCode==0){ |
| 279 | - alert("操作成功"); | 279 | + alert(data.errorMessage); |
| 280 | location.href = location.href; | 280 | location.href = location.href; |
| 281 | } else{ | 281 | } else{ |
| 282 | - alert("操作失败"); | 282 | + alert(data.errorMessage); |
| 283 | } | 283 | } |
| 284 | }) | 284 | }) |
| 285 | }); | 285 | }); |