summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/www/js/lib/account/PaymentView.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2016-01-20 23:51:37 +0100
committerJules Laplace <jules@okfoc.us>2016-01-20 23:51:37 +0100
commita1fbe0b115fd9f9b654dae79f266581c32ba00d2 (patch)
tree5d3fd9e4401bbfeff572ba4530630a731e252ad8 /StoneIsland/platforms/ios/www/js/lib/account/PaymentView.js
parent0a6a76b07644f38b2599a6bb0c462e82cdecbf8a (diff)
backup db, handle being offline better
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/lib/account/PaymentView.js')
-rwxr-xr-xStoneIsland/platforms/ios/www/js/lib/account/PaymentView.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/StoneIsland/platforms/ios/www/js/lib/account/PaymentView.js b/StoneIsland/platforms/ios/www/js/lib/account/PaymentView.js
index 8b49ed1d..0e300f9b 100755
--- a/StoneIsland/platforms/ios/www/js/lib/account/PaymentView.js
+++ b/StoneIsland/platforms/ios/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()