jQuery.ajaxSettings.traditional=true; /* * jQuery Form Plugin * version: 2.73 (03-MAY-2011) * @requires jQuery v1.3.2 or later * * Examples and documentation at: http://malsup.com/jquery/form/ * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html */ (function(b){b.fn.ajaxSubmit=function(m){if(!this.length){a("ajaxSubmit: skipping submit process - no element selected");return this}if(typeof m=="function"){m={success:m}}var l=this.attr("action");var d=(typeof l==="string")?b.trim(l):"";if(d){d=(d.match(/^([^#]+)/)||[])[1]}d=d||window.location.href||"";m=b.extend(true,{url:d,success:b.ajaxSettings.success,type:this[0].getAttribute("method")||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},m);var u={};this.trigger("form-pre-serialize",[this,m,u]);if(u.veto){a("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}if(m.beforeSerialize&&m.beforeSerialize(this,m)===false){a("ajaxSubmit: submit aborted via beforeSerialize callback");return this}var g,r,o=this.formToArray(m.semantic);if(m.data){m.extraData=m.data;for(g in m.data){if(m.data[g] instanceof Array){for(var j in m.data[g]){o.push({name:g,value:m.data[g][j]})}}else{r=m.data[g];r=b.isFunction(r)?r():r;o.push({name:g,value:r})}}}if(m.beforeSubmit&&m.beforeSubmit(o,this,m)===false){a("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[o,this,m,u]);if(u.veto){a("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}var c=b.param(o);if(m.type.toUpperCase()=="GET"){m.url+=(m.url.indexOf("?")>=0?"&":"?")+c;m.data=null}else{m.data=c}var t=this,e=[];if(m.resetForm){e.push(function(){t.resetForm()})}if(m.clearForm){e.push(function(){t.clearForm()})}if(!m.dataType&&m.target){var s=m.success||function(){};e.push(function(n){var k=m.replaceTarget?"replaceWith":"html";b(m.target)[k](n).each(s,arguments)})}else{if(m.success){e.push(m.success)}}m.success=function(w,v,x){var q=m.context||m;for(var n=0,k=e.length;n0;var f="multipart/form-data";var h=(t.attr("enctype")==f||t.attr("encoding")==f);if(m.iframe!==false&&(i||m.iframe||h)){if(m.closeKeepAlive){b.get(m.closeKeepAlive,p)}else{p()}}else{b.ajax(m)}this.trigger("form-submit-notify",[this,m]);return this;function p(){var k=t[0];if(b(":input[name=submit],:input[id=submit]",k).length){alert('Error: Form elements must not have name or id of "submit".');return}var D=b.extend(true,{},b.ajaxSettings,m);D.context=D.context||D;var G="jqFormIO"+(new Date().getTime()),z="_"+G;var v=b('