Pman.Dialog.Image.bjs
[Pman.Core] / Pman.Dialog.Image.js
index 60f3e50..cb5d2b8 100644 (file)
@@ -149,6 +149,9 @@ Pman.Dialog.Image = {
                                         }
                                         return; 
                                     }
+                                    
+                                
+                                    
                                 },
                                 rendered : function (form)
                                 {
@@ -164,7 +167,7 @@ Pman.Dialog.Image = {
                                         Roo.log("Upload error");
                                         Roo.log(act);
                                         try {
-                                            Roo.MessageBox.alert("Error", act.result.errorMsg);
+                                            Roo.MessageBox.alert("Error", act.result.errorMsg.split(/\n/).join('<BR/>'));
                                         } catch(e) {
                                           //  Roo.log(e);
                                             Roo.MessageBox.alert("Error", "Saving failed = fix errors and try again");        
@@ -180,6 +183,7 @@ Pman.Dialog.Image = {
                             labelWidth : 140,
                             method : 'POST',
                             style : 'margin:10px;',
+                            timeout : 300,
                             url : baseURL + '/Roo/Images.php',
                             items : [
                                 {