/** * jQuery EasyUI 1.3.6 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ (function($){ function _1(_2,_3){ _3=_3||{}; var _4={}; if(_3.onSubmit){ if(_3.onSubmit.call(_2,_4)==false){ return; } } var _5=$(_2); if(_3.url){ _5.attr("action",_3.url); } var _6="easyui_frame_"+(new Date().getTime()); var _7=$("").attr("src",window.ActiveXObject?"javascript:false":"about:blank").css({position:"absolute",top:-1000,left:-1000}); var t=_5.attr("target"),a=_5.attr("action"); _5.attr("target",_6); var _8=$(); try{ _7.appendTo("body"); _7.bind("load",cb); for(var n in _4){ var f=$("").val(_4[n]).appendTo(_5); _8=_8.add(f); } _9(); _5[0].submit(); } finally{ _5.attr("action",a); t?_5.attr("target",t):_5.removeAttr("target"); _8.remove(); } function _9(){ var f=$("#"+_6); if(!f.length){ return; } try{ var s=f.contents()[0].readyState; if(s&&s.toLowerCase()=="uninitialized"){ setTimeout(_9,100); } } catch(e){ cb(); } }; var _a=10; function cb(){ var _b=$("#"+_6); if(!_b.length){ return; } _b.unbind(); var _c=""; try{ var _d=_b.contents().find("body"); _c=_d.html(); if(_c==""){ if(--_a){ setTimeout(cb,100); return; } } var ta=_d.find(">textarea"); if(ta.length){ _c=ta.val(); }else{ var _e=_d.find(">pre"); if(_e.length){ _c=_e.html(); } } } catch(e){ } if(_3.success){ _3.success(_c); } setTimeout(function(){ _b.unbind(); _b.remove(); },100); }; }; function _f(_10,_11){ if(!$.data(_10,"form")){ $.data(_10,"form",{options:$.extend({},$.fn.form.defaults)}); } var _12=$.data(_10,"form").options; if(typeof _11=="string"){ var _13={}; if(_12.onBeforeLoad.call(_10,_13)==false){ return; } $.ajax({url:_11,data:_13,dataType:"json",success:function(_14){ _15(_14); },error:function(){ _12.onLoadError.apply(_10,arguments); }}); }else{ _15(_11); } function _15(_16){ var _17=$(_10); for(var _18 in _16){ var val=_16[_18]; var rr=_19(_18,val); if(!rr.length){ var _1a=_1b(_18,val); if(!_1a){ $("input[name=\""+_18+"\"]",_17).val(val); $("textarea[name=\""+_18+"\"]",_17).val(val); $("select[name=\""+_18+"\"]",_17).val(val); } } _1c(_18,val); } _12.onLoadSuccess.call(_10,_16); _29(_10); }; function _19(_1d,val){ var rr=$(_10).find("input[name=\""+_1d+"\"][type=radio], input[name=\""+_1d+"\"][type=checkbox]"); rr._propAttr("checked",false); rr.each(function(){ var f=$(this); if(f.val()==String(val)||$.inArray(f.val(),$.isArray(val)?val:[val])>=0){ f._propAttr("checked",true); } }); return rr; }; function _1b(_1e,val){ var _1f=0; var pp=["numberbox","slider"]; for(var i=0;i