Showing
1 changed file
with
5 additions
and
0 deletions
@@ -924,7 +924,12 @@ | @@ -924,7 +924,12 @@ | ||
924 | var switchStatus = status == 1 ? 0 : 1; | 924 | var switchStatus = status == 1 ? 0 : 1; |
925 | $.post(serverContextPath + "/grassArticle/updateArticle.do?articleId=" + id + "&isTop=" + switchStatus+ "&operateType=0", function (data) { | 925 | $.post(serverContextPath + "/grassArticle/updateArticle.do?articleId=" + id + "&isTop=" + switchStatus+ "&operateType=0", function (data) { |
926 | if(data.code != 200){ | 926 | if(data.code != 200){ |
927 | + if(data.code == 502){ | ||
928 | + alert("同一渠道下最多只能置顶5篇内容"); | ||
929 | + }else { | ||
927 | alert(data.message); | 930 | alert(data.message); |
931 | + } | ||
932 | + | ||
928 | }else{ | 933 | }else{ |
929 | $("#activityListTable").datagrid("reload"); | 934 | $("#activityListTable").datagrid("reload"); |
930 | } | 935 | } |
-
Please register or login to post a comment