summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts/js/debug/ajax.js
diff options
context:
space:
mode:
authorwei <>2006-09-16 03:43:02 +0000
committerwei <>2006-09-16 03:43:02 +0000
commit2d8fc0f1818aa896bebedf8cbeedffb17d048600 (patch)
tree2ef6ea939d5f018598ec2983086354000750fb70 /framework/Web/Javascripts/js/debug/ajax.js
parentd148330f1fe3cb6116a69e56ecd44c37bfb2a44e (diff)
Fixed #340
Diffstat (limited to 'framework/Web/Javascripts/js/debug/ajax.js')
-rw-r--r--framework/Web/Javascripts/js/debug/ajax.js11
1 files changed, 7 insertions, 4 deletions
diff --git a/framework/Web/Javascripts/js/debug/ajax.js b/framework/Web/Javascripts/js/debug/ajax.js
index 246a94b3..5c1fbdcc 100644
--- a/framework/Web/Javascripts/js/debug/ajax.js
+++ b/framework/Web/Javascripts/js/debug/ajax.js
@@ -479,7 +479,7 @@ Object.extend(Prado.CallbackRequest,
msg += inspect(action)+"\n";
});
}
- Logger.warn(msg);
+ Logger.info(msg);
}
},
@@ -574,8 +574,9 @@ Object.extend(Prado.CallbackRequest,
//Logger.info("aborting ... "+inProgress);
if(inProgress)
{
- // Logger.warn("aborted "+inProgress.id)
- inProgress.request.transport.abort();
+ //abort if not ready.
+ if(inProgress.request.transport.readyState < 4)
+ inProgress.request.transport.abort();
clearTimeout(inProgress.timeout);
Prado.CallbackRequest.requestInProgress = null;
return true;
@@ -598,9 +599,11 @@ Object.extend(Prado.CallbackRequest,
else
{
if(typeof(Logger) != "undefined")
- Logger.debug("Bad page state:"+data);
+ Logger.warn("Missing page state:"+data);
+ return false;
}
}
+ return true;
}
})