diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-11-19 23:17:05 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-11-19 23:17:05 -0500 |
| commit | 0805b9a105f6cb12ffb23349e1458d13ffd90d4f (patch) | |
| tree | b3ae97ace949963b0e6d9ae1df6be74046f5fd12 /StoneIsland/www/js/lib/auth | |
| parent | eac52234321adbbb0c97c0bfedf4c7bcc64d7397 (diff) | |
dates and some cart auth
Diffstat (limited to 'StoneIsland/www/js/lib/auth')
| -rw-r--r-- | StoneIsland/www/js/lib/auth/LoginView.js | 5 | ||||
| -rw-r--r-- | StoneIsland/www/js/lib/auth/LogoutView.js | 3 | ||||
| -rw-r--r-- | StoneIsland/www/js/lib/auth/SignupView.js | 4 |
3 files changed, 11 insertions, 1 deletions
diff --git a/StoneIsland/www/js/lib/auth/LoginView.js b/StoneIsland/www/js/lib/auth/LoginView.js index 8c875ae8..c4ec8870 100644 --- a/StoneIsland/www/js/lib/auth/LoginView.js +++ b/StoneIsland/www/js/lib/auth/LoginView.js @@ -32,9 +32,14 @@ var LoginView = FormView.extend({ }, success: function(data){ + app.account.logged_in() }, error: function(data){ }, + + cancel: function(){ + auth.defer_add_to_cart = null + }, }) diff --git a/StoneIsland/www/js/lib/auth/LogoutView.js b/StoneIsland/www/js/lib/auth/LogoutView.js index 62c925eb..feb264dd 100644 --- a/StoneIsland/www/js/lib/auth/LogoutView.js +++ b/StoneIsland/www/js/lib/auth/LogoutView.js @@ -8,6 +8,7 @@ var LogoutView = View.extend({ show: function(){ document.body.className = "logout" app.footer.hide() + app.account.log_out() }, - + })
\ No newline at end of file diff --git a/StoneIsland/www/js/lib/auth/SignupView.js b/StoneIsland/www/js/lib/auth/SignupView.js index 28d828c3..092bf297 100644 --- a/StoneIsland/www/js/lib/auth/SignupView.js +++ b/StoneIsland/www/js/lib/auth/SignupView.js @@ -46,6 +46,10 @@ var SignupView = FormView.extend({ error: function(data){ }, + cancel: function(){ + auth.defer_add_to_cart = null + }, + /* var new_user_data = { "Email": "testit.account" + Math.floor(Math.random() * 10000000) + "@yoox.com", |
