名称: msg_reply_save
功能:HTTP提交留言回复
参数:
① msg_id 留言主题编号;
② id 留言回复编号,默认为0表示对某个主题递交新回复,大于0表示对历史回复进行更新;
③ content 留言回复内容;
(模板参考留言提交页面)
代码示例:
<a href="javascript:apps['member-msg-reply'](7);" class="pull-right fa fa-reply" title="reply"></a>
apps['member-msg-reply'] = function(msg_id){
var em = jQuery('.data-list-'+msg_id);
var o = JSON.parse(em.attr('data-json'));
if( em.length>0 ){
jQuery('input[name="act"]').val("msg_reply_save");
jQuery('input[name="msg_id"]').val(msg_id);
jQuery('input[name="title"]').attr('readonly', 'readonly').val(o.title);
jQuery('textarea[name="content"]').val('');
jQuery('input[name="id"]').val('0');
}
}; 