DataObjects/pman.links.ini
[Pman.Core] / Pman.Download.js
index 0cd181c..c3ef15a 100644 (file)
@@ -47,7 +47,7 @@ Pman.Download = function(cfg)
     //--- simple method..
     cfg.method = cfg.method || 'GET';
     
-    if (cfg.method == 'GET') {
+    if (cfg.method == 'GET' && !cfg.params) {
         (function() {
             submit = true;
             this.csvFrame.src = cfg.url;
@@ -63,7 +63,7 @@ Pman.Download = function(cfg)
     var b = Roo.get(document.body);
     this.form = b.createChild({
         tag: 'form',
-        method : 'POST',
+        method : cfg.method,
         action : cfg.url,
         target : this.csvFrame.id,
         enctype : 'multipart/form-data'
@@ -178,7 +178,7 @@ Roo.apply(Pman.Download.prototype, {
        
         
 
-    }
+    },
     
     // private - clean up download elements.
     cleanup :function()