check file exists
[Pman.Core] / Pman.Request.js
index 65ee5f4..82d18ff 100644 (file)
@@ -81,14 +81,14 @@ Roo.extend(Pman.Request, Roo.data.Connection, {
         }
         var res = this.processResponse(response);
                 
-        if (!res.success) { // error!
+        if (!res.success && !res.done) { // error!
             if (options.failure) {
                 // failure is handled... - do not show error..
                 Roo.callback(options.failure, options.scope, [res, options]);
                 return;
             }
-            Roo.bootstrap.MessageBox.hide(); // hide any existing messages..
-            Roo.bootstrap.MessageBox.alert("Error", res && res.errorMsg ?  res.errorMsg : "Error Sending data");
+            Roo.MessageBox.hide(); // hide any existing messages..
+            Roo.MessageBox.alert("Error", res && res.errorMsg ?  res.errorMsg : "Error Sending data");
             return;
         }
         Roo.callback(options.success, options.scope, [res, options]);