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 @@ + +
+ + + +
+
+

cloud_off

+

Can't connect to the server.

+ +
+
+ + + +
\ No newline at end of file diff --git a/www/routes.js b/www/routes.js index ef541af..ecf003e 100644 --- a/www/routes.js +++ b/www/routes.js @@ -56,4 +56,9 @@ var routes = [ url: './pages/credits.html', name: 'credits' }, + { + path: '/loaderror', + url: './pages/loaderror.html', + name: 'loaderror' + }, ]; \ No newline at end of file