Pman.Dialog.Image.bjs
[Pman.Core] / Pman.Dialog.Image.js
index 878810a..202afe9 100644 (file)
@@ -145,7 +145,7 @@ Pman.Dialog.Image = {
                                         Roo.log(act);
                                         //console.log(act);
                                         if (_this.callback) {
-                                            _this.callback.call(this, act.result.data);
+                                            _this.callback.call(this, act.result.data, act.result.extra);
                                         }
                                         return; 
                                     }
@@ -170,7 +170,7 @@ Pman.Dialog.Image = {
                                         Roo.log(act);
                                         
                                         try {
-                                            Roo.MessageBox.alert("Error -x", act.result.errorMsg.split(/\n/).join('<BR/>'));
+                                            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");