From: Alan Knowles Date: Wed, 28 Sep 2011 02:06:21 +0000 (+0800) Subject: Pman.Dialog.Image.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=230d743280ffd095e91ed92a0face7c0dabcdf95 Pman.Dialog.Image.bjs Pman.Dialog.Image.bjs Pman.Dialog.Image.js Pman.Dialog.Image.js --- diff --git a/Pman.Dialog.Image.bjs b/Pman.Dialog.Image.bjs index b2547ff3..2b51b4de 100644 --- a/Pman.Dialog.Image.bjs +++ b/Pman.Dialog.Image.bjs @@ -103,7 +103,7 @@ }, { "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 = 0,\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; // set to show..\n _this.dialog.uploadProgress.defer(1000, _this.dialog);\n\n}" }, "*prop": "buttons[]", "text": "Upload", diff --git a/Pman.Dialog.Image.js b/Pman.Dialog.Image.js index 18ed2ccd..bba653f2 100644 --- a/Pman.Dialog.Image.js +++ b/Pman.Dialog.Image.js @@ -248,7 +248,7 @@ Pman.Dialog.Image = { ts : Math.random() } }); - _this.dialog.haveProgress = 0, + _this.dialog.haveProgress = 0; // set to show.. _this.dialog.uploadProgress.defer(1000, _this.dialog); }