don't halt the page load while waiting for this

This commit is contained in:
Shish 2010-01-03 09:51:06 +00:00
parent ed4b62dc71
commit 15f78d9883

View file

@ -228,6 +228,7 @@ class Setup extends SimpleExtension {
checkbox.disabled = true; checkbox.disabled = true;
out_span.innerHTML = '(testing...)'; out_span.innerHTML = '(testing...)';
$(document).ready(function() {
http_request = getHTTPObject(); http_request = getHTTPObject();
http_request.open('GET', '$test_url', false); http_request.open('GET', '$test_url', false);
http_request.send(null); http_request.send(null);
@ -240,6 +241,7 @@ class Setup extends SimpleExtension {
checkbox.disabled = true; checkbox.disabled = true;
out_span.innerHTML = '(test failed)'; out_span.innerHTML = '(test failed)';
} }
});
</script>"; </script>";
$sb = new SetupBlock("General"); $sb = new SetupBlock("General");
$sb->position = 0; $sb->position = 0;