summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/account
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/www/js/lib/account')
-rw-r--r--StoneIsland/www/js/lib/account/LoginView.js1
-rw-r--r--StoneIsland/www/js/lib/account/LogoutView.js1
-rw-r--r--StoneIsland/www/js/lib/account/PaymentView.js6
-rw-r--r--StoneIsland/www/js/lib/account/ProfileView.js8
-rw-r--r--StoneIsland/www/js/lib/account/SettingsView.js6
-rw-r--r--StoneIsland/www/js/lib/account/ShippingView.js6
-rw-r--r--StoneIsland/www/js/lib/account/SignupView.js1
7 files changed, 28 insertions, 1 deletions
diff --git a/StoneIsland/www/js/lib/account/LoginView.js b/StoneIsland/www/js/lib/account/LoginView.js
index 9545b0d8..334c58b2 100644
--- a/StoneIsland/www/js/lib/account/LoginView.js
+++ b/StoneIsland/www/js/lib/account/LoginView.js
@@ -13,6 +13,7 @@ var LoginView = SerializableView.extend({
},
show: function(){
+ app.footer.show("SUBMIT", "CANCEL")
this.$form.get(0).reset()
this.$msg.html("* Your personal and payment information will always remain private")
document.body.className = "login"
diff --git a/StoneIsland/www/js/lib/account/LogoutView.js b/StoneIsland/www/js/lib/account/LogoutView.js
index 45abc303..71e0bc31 100644
--- a/StoneIsland/www/js/lib/account/LogoutView.js
+++ b/StoneIsland/www/js/lib/account/LogoutView.js
@@ -7,6 +7,7 @@ var LogoutView = View.extend({
show: function(){
document.body.className = "logout"
+ app.footer.hide()
},
submit: function(e){
diff --git a/StoneIsland/www/js/lib/account/PaymentView.js b/StoneIsland/www/js/lib/account/PaymentView.js
index 95b63879..103cbf8f 100644
--- a/StoneIsland/www/js/lib/account/PaymentView.js
+++ b/StoneIsland/www/js/lib/account/PaymentView.js
@@ -6,12 +6,18 @@ var PaymentView = View.extend({
},
initialize: function(){
+ this.$form = this.$("form")
+ this.$msg = this.$(".msg")
this.address = new AddressView ({ parent: this })
this.cc = new CreditCardView ({ parent: this })
},
show: function(){
+ app.footer.show("SAVE", "CANCEL")
document.body.className = "payment"
},
+
+ save: function(){
+ },
})
diff --git a/StoneIsland/www/js/lib/account/ProfileView.js b/StoneIsland/www/js/lib/account/ProfileView.js
index eb738a04..b93dcbc5 100644
--- a/StoneIsland/www/js/lib/account/ProfileView.js
+++ b/StoneIsland/www/js/lib/account/ProfileView.js
@@ -6,10 +6,16 @@ var ProfileView = View.extend({
},
initialize: function(){
+ this.$form = this.$("form")
+ this.$msg = this.$(".msg")
},
show: function(){
+ app.footer.show("SAVE", "CANCEL")
document.body.className = "profile"
},
-
+
+ save: function(){
+ },
+
}) \ No newline at end of file
diff --git a/StoneIsland/www/js/lib/account/SettingsView.js b/StoneIsland/www/js/lib/account/SettingsView.js
index b690ed81..f6b2a992 100644
--- a/StoneIsland/www/js/lib/account/SettingsView.js
+++ b/StoneIsland/www/js/lib/account/SettingsView.js
@@ -6,10 +6,16 @@ var SettingsView = View.extend({
},
initialize: function(){
+ this.$form = this.$("form")
+ this.$msg = this.$(".msg")
},
show: function(){
+ app.footer.show("SAVE", "CANCEL")
document.body.className = "settings"
},
+ save: function(){
+ },
+
}) \ No newline at end of file
diff --git a/StoneIsland/www/js/lib/account/ShippingView.js b/StoneIsland/www/js/lib/account/ShippingView.js
index d22029c7..37ba9df9 100644
--- a/StoneIsland/www/js/lib/account/ShippingView.js
+++ b/StoneIsland/www/js/lib/account/ShippingView.js
@@ -6,11 +6,17 @@ var ShippingView = View.extend({
},
initialize: function(){
+ this.$form = this.$("form")
+ this.$msg = this.$(".msg")
this.address = new AddressView ({ parent: this })
},
show: function(){
+ app.footer.show("SAVE", "CANCEL")
document.body.className = "shipping"
},
+
+ save: function(){
+ },
}) \ No newline at end of file
diff --git a/StoneIsland/www/js/lib/account/SignupView.js b/StoneIsland/www/js/lib/account/SignupView.js
index 0f527d4f..d8459f9b 100644
--- a/StoneIsland/www/js/lib/account/SignupView.js
+++ b/StoneIsland/www/js/lib/account/SignupView.js
@@ -12,6 +12,7 @@ var SignupView = SerializableView.extend({
},
show: function(){
+ app.footer.show("SUBMIT", "CANCEL")
this.$form.get(0).reset()
this.$msg.html("* Your personal and payment information will always remain private")
document.body.className = "signup"