/*** Created by A.J on 2021/5/24.*/$(document).ready(function(){var pic='';$('#upload').uploadify({auto:true,fileTypeExts:'*.jpg;*.png;*.gif;*.jpeg',multi:false,fileSizeLimit:9999,buttonText:$('#buttonText').text(),showUploadedPercent:true,showUploadedSize:false,removeTimeout:3,uploader:'uploadslide',onUploadStart:function(){this.formData = {gid:$("#gid").val(),upd:$("#tupian").val(),verification:$("#verification").text()};},onUploadComplete:function(file,data){pic = $("#domain").text()+data;$('#tupian').val(data);$('#tupianImg').attr("src", pic);}});$("#defaultgroup").on("click", function(){var subobj = $(this);subobj.children("i").removeClass("d-none");$.post("defaultgroup", { width: $("#width").val(),height: $("#height").val(), verification:$("#verification").text()}, function(data){subobj.children("i").addClass("d-none");if(data != 'ok'){$.alert({title: $('#chucuo').text(),content: data,buttons: {confirm: {text: $('#queding').text(),btnClass: 'btn-info',keys: ['enter']}}});}else{$('#addslidemodal').modal('hide');}});});});