/*** Created by A.J on 2019/3/12.*/$(document).ready(function(){$("#upload").uploadify({auto:!0,fileTypeExts:"*.jpg;*.png;*.gif;*.jpeg",multi:!1,formData:{width:820,height:390,verification:$("#verification").text()},fileSizeLimit:999999,buttonText:$("#buttonText").text(),showUploadedPercent:!0,showUploadedSize:!1,removeTimeout:3,uploader:"uploadslideshow",onUploadStart:function(){this.formData={width:catfishslide[$("#slidegrouping").val()].width,height:catfishslide[$("#slidegrouping").val()].height,upd:$("#slideshow").val(),verification:$("#verification").text()}},onUploadComplete:function(i,t){$("#slideshow").val(t),$("#slideshowImg").attr("src",$("#domain").text()+t)}}),$("#slidegrouping").on("change",function(){""!=$.trim($(this).val())?($("#kuandu").text(catfishslide[$("#slidegrouping").val()].width),$("#gaodu").text(catfishslide[$("#slidegrouping").val()].height),$("#uploadiv").removeClass("hidden")):$("#uploadiv").addClass("hidden")}),$("#baocun").click(function(){if($.catfishcms()){var i=$(this);i.children("span").removeClass("hidden"),$.post("",$("#slideForm").serialize(),function(t){i.children("span").addClass("hidden"),"ok"==t?($("#id").length<1||""==$("#id").val())&&window.location.reload():$.alert({title:$("#chucuo").text(),content:t,confirmButton:$("#queding").text()})})}}),""!=$("#slideshow").val()&&$("#slideshowImg").attr("src",$("#domain").text()+$("#slideshow").val()),""!=$("#slidegrouping").val()&&($("#kuandu").text(catfishslide[$("#slidegrouping").val()].width),$("#gaodu").text(catfishslide[$("#slidegrouping").val()].height),$("#uploadiv").removeClass("hidden"))});