From 011805eb15740d764817b27f8abf902e0da98773 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 4 Feb 2014 17:59:15 +0800 Subject: [PATCH] Pman.Download.js --- Pman.Download.js | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/Pman.Download.js b/Pman.Download.js index d8922009..6c71de40 100644 --- a/Pman.Download.js +++ b/Pman.Download.js @@ -256,12 +256,18 @@ Roo.apply(Pman.Download.prototype, { this.method = this.grid.ds.proxy.conn.method ; var t = this; // work out the cols - Roo.each(this.grid.cm.config, function(c,i) { - t.params['csvCols['+i+']'] = c.dataIndex; - t.params['csvTitles['+i+']'] = c.header; - - }); + if (this.csvCols) { + t.params.csvCols = this.csvCols; + t.params.csvTitles = this.csvTitles; + } else { + + Roo.each(this.grid.cm.config, function(c,i) { + t.params['csvCols['+i+']'] = c.dataIndex; + t.params['csvTitles['+i+']'] = c.header; + + }); + } if (this.grid.loadMask) { this.grid.loadMask.onLoad(); } -- 2.39.2