roojs-all.js
authorAlan Knowles <alan@roojs.com>
Thu, 27 Dec 2018 08:19:00 +0000 (16:19 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 27 Dec 2018 08:19:00 +0000 (16:19 +0800)
roojs-all.js

index 5390c15..a7619ec 100644 (file)
@@ -484,7 +484,7 @@ Roo.callback(B.callback,B.scope,[B,false,A]);},doFormUpload:function(o,ps,A){var
 }var C=Roo.getDom(o.form);C.target=id;C.method='POST';C.enctype=C.encoding='multipart/form-data';if(A){C.action=A;}var D,hd;if(ps){D=[];ps=Roo.urlDecode(ps,false);for(var k in ps){if(ps.hasOwnProperty(k)){hd=document.createElement('input');hd.type='hidden';
 hd.name=k;hd.value=ps[k];C.appendChild(hd);D.push(hd);}}}function cb(){var r={responseText:'',responseXML:null};r.argument=o?o.argument:null;try{var F;if(Roo.isIE){F=B.contentWindow.document;}else{F=(B.contentDocument||window.frames[id].document);}if(F&&F.body){r.responseText=F.body.innerHTML;
 }if(F&&F.XMLDocument){r.responseXML=F.XMLDocument;}else{r.responseXML=F;}}catch(e){}Roo.EventManager.removeListener(B,'load',cb,this);this.fireEvent("requestcomplete",this,r,o);Roo.callback(o.success,o.scope,[r,o]);Roo.callback(o.callback,o.scope,[o,true,r]);
-setTimeout(function(){document.body.removeChild(B);},100);}Roo.EventManager.on(B,'load',cb,this);C.submit();if(D){for(var i=0,E=D.length;i<E;i++){C.removeChild(D[i]);}}},doFormDataUpload:function(o,ps,A){var B=o.formData===true?new FormData(Roo.getDom(o.form)):o.formData;
+setTimeout(function(){document.body.removeChild(B);},100);}Roo.EventManager.on(B,'load',cb,this);C.submit();if(D){for(var i=0,E=D.length;i<E;i++){C.removeChild(D[i]);}}},doFormDataUpload:function(o,ps,A){form.enctype=form.encoding='multipart/form-data';var B=o.formData===true?new FormData(Roo.getDom(o.form)):o.formData;
 var cb={success:this.handleResponse,failure:this.handleFailure,scope:this,argument:{options:o},timeout:o.timeout||this.timeout};if(typeof o.autoAbort=='boolean'){if(o.autoAbort){this.abort();}}else if(this.autoAbort!==false){this.abort();}this.transId=Roo.lib.Ajax.request("POST",A,cb,o.formData,o);
 }});
 // Roo/Ajax.js