diff options
Diffstat (limited to 'StoneIsland/www/js/lib/account/PaymentView.js')
| -rwxr-xr-x | StoneIsland/www/js/lib/account/PaymentView.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/StoneIsland/www/js/lib/account/PaymentView.js b/StoneIsland/www/js/lib/account/PaymentView.js index 8b49ed1d..0e300f9b 100755 --- a/StoneIsland/www/js/lib/account/PaymentView.js +++ b/StoneIsland/www/js/lib/account/PaymentView.js @@ -34,6 +34,11 @@ var PaymentView = FormView.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 CHANGE<br>YOUR PAYMENT INFO.", "") + return + } app.footer.show("SAVE") document.body.className = "payment" this.deferScrollToTop() |
