check file exists
[Pman.Core] / Pman.Request.js
index 6cc8206..82d18ff 100644 (file)
@@ -81,7 +81,7 @@ 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]);
@@ -103,7 +103,7 @@ Roo.extend(Pman.Request, Roo.data.Connection, {
         if (this.mask && this.maskEl) {
             Roo.get(this.maskEl).unmask(true);
         }
-        if(!this.showFailtureDialog){
+        if(!this.showFailureDialog){
             return;
         }
         if (res !== true) {
@@ -119,4 +119,4 @@ Roo.extend(Pman.Request, Roo.data.Connection, {
             
         }
     }
-});
\ No newline at end of file
+});