summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/cart/CartView.js
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/www/js/lib/cart/CartView.js')
-rwxr-xr-xStoneIsland/www/js/lib/cart/CartView.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/StoneIsland/www/js/lib/cart/CartView.js b/StoneIsland/www/js/lib/cart/CartView.js
index 9fd7bc8d..a10efb46 100755
--- a/StoneIsland/www/js/lib/cart/CartView.js
+++ b/StoneIsland/www/js/lib/cart/CartView.js
@@ -36,6 +36,11 @@ var CartView = View.extend({
},
show: function(){
+ if (! navigator.onLine) {
+ app.closed.showElement()
+ app.closed.setMessage("PLEASE GO ONLINE TO<br>VIEW YOUR CART.", "")
+ return
+ }
document.body.className = "cart"
this.show_summary()
},