...
|
...
|
@@ -31,38 +31,6 @@ |
|
|
});
|
|
|
}
|
|
|
|
|
|
function replyNow(){
|
|
|
var articleId = paramObject.mkData.articleId;
|
|
|
var commentId = paramObject.mkData.commentId;
|
|
|
var replyUid = $("#replyUid").textbox("getValue");
|
|
|
var content = $("#content").val();
|
|
|
if (!replyUid || replyUid == '') {
|
|
|
alert("请先选择马甲!");
|
|
|
return ;
|
|
|
}
|
|
|
if (!content || content == '') {
|
|
|
alert("请填写回复内容!");
|
|
|
return ;
|
|
|
}
|
|
|
$.get(serverContextPath + "/grassArticleComment/addGrassArticleComment?destId=" + articleId +
|
|
|
"&addType=" + 1 + "&uid=" + replyUid + "&content=" + content + "&commentId=" + commentId, function (data) {
|
|
|
if (data.code != 200) {
|
|
|
$.messager.alert("失败", data.message, "error");
|
|
|
} else {
|
|
|
$.messager.show({
|
|
|
title:"提示",
|
|
|
msg: "回复成功!",
|
|
|
height: 120
|
|
|
});
|
|
|
//刷新当前页面
|
|
|
location.reload();
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function closeNow(){
|
|
|
location.reload();
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
<div id="tt" class="easyui-layout" fit="true" style="margin:0;overflow-y: scroll">
|
...
|
...
|
@@ -94,14 +62,14 @@ |
|
|
<!--<div style="clear: both;"> <span id="content-count">0</span>/500</div>-->
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr style="height: 20%">
|
|
|
<!--<tr style="height: 20%">
|
|
|
<td style="width:20% ">
|
|
|
<a href="#" class="easyui-linkbutton" onclick="replyNow()" data-options="menu:'#mm1',iconCls:'icon-edit'">立即回复</a>
|
|
|
<a href="#" class="easyui-linkbutton" onclick="closeNow()" data-options="menu:'#mm1',iconCls:'icon-cancel'">关闭</a>
|
|
|
<!--<input id="replyBtn" type="button" onclick="test()"/>-->
|
|
|
<!–<input id="replyBtn" type="button" onclick="test()"/>–>
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
</tr>-->
|
|
|
|
|
|
</table>
|
|
|
</div>
|
...
|
...
|
|