Pman.Download.js
[Pman.Core] / Pman.Download.js
index 1fd22ba..41ff363 100644 (file)
@@ -101,7 +101,7 @@ Pman.Download = function(cfg)
 //        });
 //    }
  
+    Roo.log(this.params);
     for(var i in this.params) {
         
         var el = this.form.createChild( {
@@ -159,6 +159,7 @@ Roo.apply(Pman.Download.prototype, {
             this.csvFrame.src = Roo.SSL_SECURE_URL;
         //}
         document.body.appendChild(this.csvFrame);
+        Roo.get(this.csvFrame).on("load", this.success , this);
 
         if(Roo.isIE){
             document.frames[id].name = id;
@@ -258,7 +259,7 @@ Roo.apply(Pman.Download.prototype, {
         
         
         this.url = this.grid.ds.proxy.conn.url;
-        this.method = this.grid.ds.proxy.conn.method ;
+        this.method = this.method || this.grid.ds.proxy.conn.method ;
         var t = this;
         // work out the cols