From 1aae7216cdb9b022837a5a816bf68b21744ba6bc Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Mon, 19 Dec 2011 11:16:38 +0100 Subject: [PATCH] Debug HTTP 000 error. Moved domReady into loggedIn method. --- www/mobile/mobile_client.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); } -- 1.7.10.4