From: Alan Knowles Date: Mon, 19 Aug 2013 03:23:55 +0000 (+0800) Subject: Pman.Download.js X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=e0533f817106f509fc7dcb78c3a2938a56bf8a41 Pman.Download.js --- diff --git a/Pman.Download.js b/Pman.Download.js index b70533f6..78999cdd 100644 --- a/Pman.Download.js +++ b/Pman.Download.js @@ -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'