From 8051bcf903d2f0100e8a98aa279edca57353409e Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 10 Nov 2010 14:29:45 +0800 Subject: [PATCH] Roo/form/Action.js --- Roo/form/Action.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Roo/form/Action.js b/Roo/form/Action.js index 8af7dfda3b..770d3bbb4f 100644 --- a/Roo/form/Action.js +++ b/Roo/form/Action.js @@ -158,22 +158,22 @@ Roo.extend(Roo.form.Action.Submit, Roo.form.Action, { method: 'GET', success : function(data){ //console.log(data); - if (this.uploadComplete) { + if (this.uploadComplete) { Roo.MessageBox.hide(); return; - } + } - if (data){ + if (data){ Roo.MessageBox.updateProgress(data.bytes_uploaded/data.bytes_total, Math.floor((data.bytes_total - data.bytes_uploaded)/1000) + 'k remaining' ); - } - this.uploadProgress.defer(2000,this); - }, - scope : this, + } + this.uploadProgress.defer(2000,this); + }, + scope : this, failure: function(data) { - // console.log('fail'); - // console.log(data); + Roo.log('progress url failed '); + Roo.log(data); } }); -- 2.39.2