Pman.Dialog.Image.bjs
[Pman.Core] / Pman.Dialog.Image.js
index 5aa1a8d..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");