/*** Created by A.J on 2019/9/11.*/$(document).ready(function(){$('[data-toggle="popover"]').popover();$("#delfujian").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("delannex", { id: obj.data("id"), verification:$("#verification").text()},function(data){obj.children("i:last").addClass("d-none");if(data == 'ok'){obj.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']}}});});$("#jifenleixing").on("change", function(){if($(this).val() == 1){$("#jifentishi").text($("#jifenpost").text());}else if($(this).val() == 2){$("#jifentishi").text($("#jifenattach").text());}});if($("#jifenleixing").val() == 2){$("#jifentishi").text($("#jifenattach").text());}if($('#shipin').length > 0){$('#shipinclose').on('click',function(){$("#deleting").removeClass("d-none");$.post("delvideo", { path: $("#shipinurl").val(),tid: $("#tid").val(), verification:$("#verification").text()},function(data){$("#deleting").addClass("d-none");if(data == 'ok'){$("#shipinnameshow").text("");$("#shipinname").val("");$("#shipinurl").val("");$("#shipindiv").addClass("d-none");}else{$.alert({title: $('#chucuo').text(),content: data,buttons: {confirm: {text: $('#queding').text(),btnClass: 'btn-info',keys: ['enter']}}});}});});}});