DataObjects/core.sql
[Pman.Core] / Pman.Dialog.Image.js
index 2ed156b..5aa1a8d 100644 (file)
@@ -70,15 +70,15 @@ Pman.Dialog.Image = {
                 dlg.haveProgress = 1;
             
                 var uid = _this.form.findField('UPLOAD_IDENTIFIER').getValue();
-                Pman.request({
+                new Pman.Request({
                     url : baseURL + '/Core/UploadProgress.php',
                     params: {
                         id : uid
                     },
                     method: 'GET',
-                    success : function(data){
+                    success : function(res){
                         //console.log(data);
-                        
+                        var data = res.data;
                         if (dlg.haveProgress == 2) {
                             // it's been closed elsewhere..
                             return;
@@ -157,7 +157,7 @@ Pman.Dialog.Image = {
                                 actionfailed : function (_self, act)
                                 {
                                     _this.dialog.uploadComplete = true;
-                                    _this.dialog.el.unmask();
+                                   // _this.dialog.el.unmask();
                                     // error msg???
                                      _this.dialog.haveProgress = 2; 
                                     if (act.type == 'submit') {
@@ -180,6 +180,7 @@ Pman.Dialog.Image = {
                             labelWidth : 140,
                             method : 'POST',
                             style : 'margin:10px;',
+                            timeout : 300,
                             url : baseURL + '/Roo/Images.php',
                             items : [
                                 {