From 314ac2a480ee390cca0bf1d1d3a525b458c09d12 Mon Sep 17 00:00:00 2001 From: Eric Rasche Date: Fri, 26 Sep 2014 15:03:17 -0500 Subject: [PATCH] Set timeout lower than time between requests --- static/js/ie.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/js/ie.js b/static/js/ie.js index 77b690a..da55dd5 100644 --- a/static/js/ie.js +++ b/static/js/ie.js @@ -32,12 +32,15 @@ function test_ie_availability(url, success_callback){ $.ajax({ url: url, type: "GET", + timeout: 500, success: function(){ + console.log("Connected to IE, returning"); clearInterval(interval); success_callback(); }, - error: function(){ + error: function(jqxhr, status, error){ request_count++; + console.log("Request " + request_count); if(request_count > 30){ clearInterval(interval); clear_main_area();