Commit e7ba65be1c04ebdcfe44e732cd255a00d53fd6b1

Authored by 陈浩
1 parent d5af56bc

update

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