"use strict";$(function(){$("#side-menu>li:eq(5)").addClass("active"),$(".fileupload").fileupload({url:"/admin/uploadimg",dataType:"json",done:function(t,e){$(this).prev("img").attr("src",e.result.files[0].url),$(this).next(":hidden").val("/static/images/"+e.result.files[0].name)}}),$("#btnSave").on("click",function(){$.ajax({url:$("#formAbout")[0].action,type:$("#formAbout")[0].method,data:$("#formAbout").serialize(),success:function(){swal({title:"保存成功！",type:"success",showConfirmButton:!1,timer:2e3})},error:function(){swal({title:"保存失败！",type:"error",showConfirmButton:!1,timer:2e3})}})})});