Commit 9b0b8040da1d06807546f734df807cb2dac2fd90

Authored by liwei2917
1 parent ad4356c4

修改直播申请审核拒绝时审核消息为空时不能提交

src/main/resources/templates/page/liveApply.html
@@ -612,6 +612,10 @@ @@ -612,6 +612,10 @@
612 }) 612 })
613 ids = ids.substring(1); 613 ids = ids.substring(1);
614 var msg = $("#reviewMsg").val(); 614 var msg = $("#reviewMsg").val();
  615 + if ( msg == '') {
  616 + alert('请输入审核意见!');
  617 + return false;
  618 + }
615 $.post("/liveApply/shenheLiveApply?ids=" + ids + "&msg=" + msg+"&state="+2, function (data) { 619 $.post("/liveApply/shenheLiveApply?ids=" + ids + "&msg=" + msg+"&state="+2, function (data) {
616 if (data.errorCode == 0) { 620 if (data.errorCode == 0) {
617 alert(data.errorMessage); 621 alert(data.errorMessage);
src/main/resources/templates/page/liveApplyDetail.html
@@ -231,6 +231,10 @@ @@ -231,6 +231,10 @@
231 //提交拒绝 231 //提交拒绝
232 function repulseSubmit() { 232 function repulseSubmit() {
233 var msg = $("#reviewMsg").val(); 233 var msg = $("#reviewMsg").val();
  234 + if ( msg == '') {
  235 + alert('请输入审核意见!');
  236 + return false;
  237 + }
234 $.post("/liveApply/shenheLiveApply?ids=" + liveId + "&msg=" + msg+"&state="+2, function (data) { 238 $.post("/liveApply/shenheLiveApply?ids=" + liveId + "&msg=" + msg+"&state="+2, function (data) {
235 if (data.errorCode == 0) { 239 if (data.errorCode == 0) {
236 alert(data.errorMessage); 240 alert(data.errorMessage);
src/main/resources/templates/page/topic.html
@@ -530,6 +530,10 @@ @@ -530,6 +530,10 @@
530 function repulseSubmit() { 530 function repulseSubmit() {
531 var ids = $('#topic_id_hidden').val(); 531 var ids = $('#topic_id_hidden').val();
532 var msg = $("#reviewMsg").val(); 532 var msg = $("#reviewMsg").val();
  533 + if ( msg == '') {
  534 + alert('请输入审核意见!');
  535 + return false;
  536 + }
533 $.post("/topic/refuse?ids=" + ids + "&msg=" + msg, function (data) { 537 $.post("/topic/refuse?ids=" + ids + "&msg=" + msg, function (data) {
534 if (data.errorCode == 0) { 538 if (data.errorCode == 0) {
535 alert(data.errorMessage); 539 alert(data.errorMessage);