diff --git a/www/js/accounts.js b/www/js/accounts.js index 5bda589..10547a1 100644 --- a/www/js/accounts.js +++ b/www/js/accounts.js @@ -125,12 +125,12 @@ function getuserinfo(callback) { callback(); } } else { + router.navigate("/loaderror"); navigator.notification.alert(data.msg, null, "Error", 'Dismiss'); - openscreen("homeloaderror"); } }, "json").fail(function () { navigator.notification.alert("Could not connect to the server. Try again later.", null, "Error", 'Dismiss'); - openscreen("homeloaderror"); + router.navigate("/loaderror"); }); } diff --git a/www/pages/loaderror.html b/www/pages/loaderror.html new file mode 100644 index 0000000..cd3774c --- /dev/null +++ b/www/pages/loaderror.html @@ -0,0 +1,36 @@ + +