Pman.Dialog.Image.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 28 Sep 2011 02:06:12 +0000 (10:06 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 28 Sep 2011 02:06:12 +0000 (10:06 +0800)
Pman.Dialog.Image.bjs
Pman.Dialog.Image.js
Pman.Dialog.Image.js

Pman.Dialog.Image.bjs
Pman.Dialog.Image.js

index 02f9f81..b2547ff 100644 (file)
                 },
                 {
                     "listeners": {
-                        "click": "function (_self, e)\n{\n    // do some checks?\n     \n    _this.dialog.el.mask(\"Sending\");\n    _this.dialog.uploadComplete = false;\n    _this.form.doAction('submit', {\n        params: {\n            ts : Math.random()\n        } \n    });\n    _this.dialog.haveProgress = false,\n    _this.dialog.uploadProgress.defer(1000, _this.dialog);\n\n}"
+                        "click": "function (_self, e)\n{\n    // do some checks?\n     \n    _this.dialog.el.mask(\"Sending\");\n    _this.dialog.uploadComplete = false;\n    _this.form.doAction('submit', {\n        params: {\n            ts : Math.random()\n        } \n    });\n    _this.dialog.haveProgress = 0,\n    _this.dialog.uploadProgress.defer(1000, _this.dialog);\n\n}"
                     },
                     "*prop": "buttons[]",
                     "text": "Upload",
index 165816a..18ed2cc 100644 (file)
@@ -248,7 +248,7 @@ Pman.Dialog.Image = {
                                     ts : Math.random()
                                 } 
                             });
-                            _this.dialog.haveProgress = false,
+                            _this.dialog.haveProgress = 0,
                             _this.dialog.uploadProgress.defer(1000, _this.dialog);
                         
                         }