From: Dennis Schafroth Date: Mon, 19 Dec 2011 10:16:38 +0000 (+0100) Subject: Debug HTTP 000 error. Moved domReady into loggedIn method. X-Git-Tag: v1.6.7~15 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=1aae7216cdb9b022837a5a816bf68b21744ba6bc;p=pazpar2-moved-to-github.git Debug HTTP 000 error. Moved domReady into loggedIn method. --- diff --git a/www/mobile/mobile_client.js b/www/mobile/mobile_client.js index 58da345..d024082 100644 --- a/www/mobile/mobile_client.js +++ b/www/mobile/mobile_client.js @@ -95,6 +95,7 @@ my_paz = new pz2( { "onshow": my_onshow, // pz2.js event handlers: // function my_onerror(error) { + alert("Unhandled error: " + error.code); switch(error.code) { // No targets! case "8": alert("No resources were selected for the search"); break; @@ -195,11 +196,12 @@ function loggedIn() { var login = document.getElementById("login"); login.innerHTML = 'Logout'; document.getElementById("log").innerHTML = login.innerHTML; + domReady(); } function auth_check() { auth.check(loggedIn, login); - domReady(); + //domReady(); }