DataObjects/Core_watch.php
[Pman.Core] / Pman.Dialog.Image.js
index 5d85473..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;
@@ -180,6 +180,7 @@ Pman.Dialog.Image = {
                             labelWidth : 140,
                             method : 'POST',
                             style : 'margin:10px;',
+                            timeout : 300,
                             url : baseURL + '/Roo/Images.php',
                             items : [
                                 {