summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/account/OrdersView.js
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/www/js/lib/account/OrdersView.js')
-rwxr-xr-xStoneIsland/www/js/lib/account/OrdersView.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/StoneIsland/www/js/lib/account/OrdersView.js b/StoneIsland/www/js/lib/account/OrdersView.js
index a1b83767..b3ff3e7a 100755
--- a/StoneIsland/www/js/lib/account/OrdersView.js
+++ b/StoneIsland/www/js/lib/account/OrdersView.js
@@ -31,6 +31,11 @@ var OrdersView = ScrollableView.extend({
show: function(){
if (! auth.logged_in()) { return app.router.go("intro") }
+ if (! navigator.onLine) {
+ app.closed.showElement()
+ app.closed.setMessage("PLEASE GO ONLINE TO VIEW<br>YOUR ORDERS.", "")
+ return
+ }
app.header.set_back(false)
app.footer.hide()
document.body.className = "orders"