summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-11-22 15:15:32 -0500
committerJules Laplace <jules@okfoc.us>2015-11-22 15:15:32 -0500
commit46bca0d394d4c327d692a081f9afedcf7e05c146 (patch)
tree05655d88f5549a20839eec0158c75e093afeed98 /StoneIsland/www/js
parent0b330d8d365f8cba80d0ead6f59f66cc6ee1ffcd (diff)
signup works
Diffstat (limited to 'StoneIsland/www/js')
-rw-r--r--StoneIsland/www/js/lib/account/AccountView.js5
-rw-r--r--StoneIsland/www/js/lib/auth/SignupView.js6
2 files changed, 10 insertions, 1 deletions
diff --git a/StoneIsland/www/js/lib/account/AccountView.js b/StoneIsland/www/js/lib/account/AccountView.js
index 221640c5..8f53b27f 100644
--- a/StoneIsland/www/js/lib/account/AccountView.js
+++ b/StoneIsland/www/js/lib/account/AccountView.js
@@ -14,6 +14,11 @@ var AccountView = View.extend({
},
populateAddresses: function(data){
+ console.log("populate addresses:", data)
+ if (! data.AddressBook) {
+ console.log("no addresses")
+ return
+ }
data.AddressBook.forEach(function(address){
if (addressBookItem.isDefault) {
// populate app.shipping.address
diff --git a/StoneIsland/www/js/lib/auth/SignupView.js b/StoneIsland/www/js/lib/auth/SignupView.js
index 71d3c8d0..367bd356 100644
--- a/StoneIsland/www/js/lib/auth/SignupView.js
+++ b/StoneIsland/www/js/lib/auth/SignupView.js
@@ -16,9 +16,13 @@ var SignupView = FormView.extend({
},
show: function(){
+ var msg = "* Your personal and payment<br>information will always remain private"
+ if (auth.logged_in()) {
+ msg += "<br><br>You are already logged in."
+ }
app.footer.show("SUBMIT", "CANCEL")
this.$form.get(0).reset()
- this.$msg.html("* Your personal and payment<br />information will always remain private")
+ this.$msg.html(msg)
document.body.className = "signup"
},