$(document).ready(function(){$("tr.group,tr.user").css("cursor","pointer");$(document).on("click","tr.group,tr.user",function(){var b,a;b=$(this).children(":first-child").text();a=$(this).hasClass("group")?"group":"user";$.ajax({url:"apps_v/ad_check_v.php",type:"get",data:{item:b,item_type:a},success:function(c){if(a=="user"){$("#userdetail").html(c);$("#userdetail").dialog({width:"auto",height:"auto"})}else{$("#detail").html(c);$("#detail").dialog({width:"auto",height:"auto"})}}})});$(".sync").click(function(){$.ajax({url:"lib/ad_sync.php",type:"get",success:function(a){window.location.reload();alert(a)}})})});