Showing
1 changed file
with
2 additions
and
2 deletions
| @@ -148,14 +148,14 @@ | @@ -148,14 +148,14 @@ | ||
| 148 | $.post("{:url('Comment/addcommit')}", data.field, function (res) { | 148 | $.post("{:url('Comment/addcommit')}", data.field, function (res) { |
| 149 | layer.close(loading); | 149 | layer.close(loading); |
| 150 | alert(JSON.stringify(res)); | 150 | alert(JSON.stringify(res)); |
| 151 | - if (res.code == 1) { | 151 | + /*if (res.code == 1) { |
| 152 | layer.msg(res.msg, {time: 1000, icon: 1}, function () { | 152 | layer.msg(res.msg, {time: 1000, icon: 1}, function () { |
| 153 | location.href = "{:url('CommentList')}"; | 153 | location.href = "{:url('CommentList')}"; |
| 154 | }); | 154 | }); |
| 155 | } else { | 155 | } else { |
| 156 | alert(res.msg); | 156 | alert(res.msg); |
| 157 | layer.msg(res.msg, {time: 1000, icon: 2}); | 157 | layer.msg(res.msg, {time: 1000, icon: 2}); |
| 158 | - } | 158 | + }*/ |
| 159 | }); | 159 | }); |
| 160 | }) | 160 | }) |
| 161 | }); | 161 | }); |
-
Please register or login to post a comment