DataObjects/Core_watch.php
[Pman.Core] / Pman.Download.js
index e97a1b9..34b74d7 100644 (file)
@@ -64,7 +64,7 @@ Pman.Download = function(cfg)
         (function() {
             this.submit = true;
             this.csvFrame.src = cfg.url;
-            this.cleanup.defer(cfg.timeout || 30000,this);
+            //this.cleanup.defer(cfg.timeout || 30000,this);
         }).defer(100, this);
         
        
@@ -151,10 +151,11 @@ Roo.apply(Pman.Download.prototype, {
        // if (requested < 2) {
        //     return;
         //} // n
+        Roo.log('onload?');
         if (!this.submit) {
             return false;
         }
-        
+        return false;
       
         var frame = this.csvFrame;
         var success  = true; 
@@ -181,7 +182,7 @@ Roo.apply(Pman.Download.prototype, {
             Roo.log(e);
         }
         // we can not actually do anything with the frame... as it may actually still be downloading..
-        return false;
+        return true;
     
         this.cleanup();
         
@@ -199,6 +200,7 @@ Roo.apply(Pman.Download.prototype, {
     // private - clean up download elements.
     cleanup :function()
     {
+        Roo.log('cleanup?');
         if (this.form) {
             this.form.remove();
             this.form= false;