Ignore Already blocked (13) errors
authorDennis Schafroth <dennis@indexdata.com>
Thu, 24 Nov 2011 13:18:39 +0000 (14:18 +0100)
committerDennis Schafroth <dennis@indexdata.com>
Thu, 24 Nov 2011 13:18:39 +0000 (14:18 +0100)
www/iphone/example_client.js

index f2c538a..ea0de77 100644 (file)
@@ -68,10 +68,14 @@ function my_onerror(error) {
     case "9": 
        triggerSearch(); 
        break;
+       
+       // Already blocked 
+    case "13": 
+       // ignore
+       break
         // authentication
     case "100" : 
-       loginFormSubmit();
-       //window.location = "login.html"; 
+       auth.check(loggedIn, login);
        break;
     default: 
        alert("Unhandled error: " + error.code);