/*** Created by A.J on 2019/9/24.*/$(document).ready(function(){var gentieneirong;$('i[data-toggle="popover"]').popover();$("table img").addClass("img-fluid");var he = HE.getEditor('pinglun',{height : 'calc(100vh - 165px)',item : ['bold','italic','strike','underline','fontSize','fontName','color','|','indent','outdent','|','link','unlink','textBlock','code','selectAll','removeFormat','|','image','expression','subscript','superscript','horizontal','orderedList','unorderedList','|','undo','redo','|','about'],skin : 'jianyu'});$(".xiugaigentie").on("click", function(){gentieneirong = $(this).parent().parent().children("td:first");he.set(gentieneirong.html());$("#xiugai").data("cid", $(this).next().val());$("#xiugai").data("tid", $(this).next().next().val());$('#xiugaigentie').modal('show');});$("#xiugai").on("click", function(){var obj = $(this), gtnr = he.getHtml();obj.children("i:last").removeClass("d-none");$.post("xiugaigentie", { id: obj.data("cid"),tid: obj.data("tid"), gtnr: gtnr, verification:$("#verification").text()},function(data){obj.children("i:last").addClass("d-none");if(data == 'ok'){gentieneirong.html(gtnr);gentieneirong.find("img").addClass("img-fluid");he.set("");$('#xiugaigentie').modal('hide');}else{$.alert({title: '提示',content: data,buttons: {confirm: {text: '确定',btnClass: 'btn-info',keys: ['enter']}}});}});});$(".confirm").on("click", function(){var obj = $(this);$.confirm({title: $("#quedingshanchu").text(),content: $("#bukehuifu").text(),buttons: {confirm: {text: $('#jixu').text(),btnClass: 'btn-info',keys: ['enter'],action: function () {obj.children("i:last").removeClass("d-none");$.post("delmyfollowuppost", { id: obj.next().val(), tid: obj.next().next().val(), verification:$("#verification").text()},function(data){obj.children("i:last").addClass("d-none");if(data == 'ok'){obj.parent().parent().remove();}else{$.alert({title: $('#chucuo').text(),content: data,buttons: {confirm: {text: $('#queding').text(),btnClass: 'btn-info',keys: ['enter']}}});}});}},cancel: {text: $('#quxiao').text(),btnClass: 'btn-default',keys: ['esc']}}});});});