/*** Created by A.J on 2019/10/1.*/$(document).ready(function(){$("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("manaadmin", { 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']}}});}});});var gupoval;$(".yonghuzu").mouseenter(function(){gupoval = $(this).val();});$(".yonghuzu").change(function(){var gupobj = $(this);var oval = gupoval;var gupval = $(this).val();$.post("setadmingroups", { id: $(this).next().val(),gup: gupval, verification:$("#verification").text()}, function(data){if(data != 'ok'){gupobj.val(oval);$.alert({title: $('#chucuo').text(),content: data,buttons: {confirm: {text: $('#queding').text(),btnClass: 'btn-info',keys: ['enter']}}});}});});});