Pman.Download.js
authorAlan Knowles <alan@roojs.com>
Mon, 19 Aug 2013 03:23:55 +0000 (11:23 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 19 Aug 2013 03:23:55 +0000 (11:23 +0800)
Pman.Download.js

index b70533f..78999cd 100644 (file)
@@ -42,7 +42,7 @@ Pman.Download = function(cfg)
     }
     
     
-    if (cfg.newWindow && this.method == 'GET') {
+    if (this.newWindow && this.method == 'GET') {
             // as ie seems buggy...
         window.open( cfg.url + '?' + Roo.urlEncode(cfg.params || {}), '_blank');
         return ; 
@@ -81,7 +81,7 @@ Pman.Download = function(cfg)
         tag: 'form',
         method : this.method,
         action : this.url,
-        target : this.csvFrame.id,
+        target : this.newWindow ? '_new' : this.csvFrame.id,
         enctype : 'multipart/form-data'