Pman.Download.js
[Pman.Core] / Pman.Download.js
index e00302f..b8e3e08 100644 (file)
@@ -48,10 +48,10 @@ Pman.Download = function(cfg)
         Roo.log(this);
     }
     
-    Roo.log(cfg);
+    Roo.log(this);
     if (this.newWindow && this.method == 'GET') {
-            // as ie seems buggy...
-        window.open( cfg.url + '?' + Roo.urlEncode(cfg.params || {}), '_blank');
+        // as ie seems buggy...
+        window.open( this.url + '?' + Roo.urlEncode(this.params || {}), '_blank');
         return ; 
         
     }
@@ -258,7 +258,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