/*** Created by A.J on 2019/10/9.*/$(document).ready(function(){$(".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("delslide", { id: obj.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']}}});});$("input.custom-control-input").on("click", function(){var tobj = $(this);var tid = $(this).attr("id");var farr = tid.split("_");var ischk = 0;if($(this).prop("checked") == true){ischk = 1;}$.post("manaslide", { id: farr[1],opt: farr[0], chk: ischk, verification:$("#verification").text()}, function(data){if(data != 'ok'){if(ischk == 1){tobj.prop("checked", false);}else{tobj.prop("checked", true);}$.alert({title: $('#chucuo').text(),content: data,buttons: {confirm: {text: $('#queding').text(),btnClass: 'btn-info',keys: ['enter']}}});}});});});