DataObjects/Core_watch.php
[Pman.Core] / Pman.Download.js
index bf8dfc8..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;
+            return false;
         }
-          return;
+        return false;
       
         var frame = this.csvFrame;
         var success  = true; 
@@ -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;