From d7385f6e25ae41d8b3021c4e01727848ac5922bd Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 9 Nov 2015 02:04:26 -0500 Subject: signup view --- StoneIsland/www/js/lib/account/LoginView.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'StoneIsland/www/js/lib/account/LoginView.js') diff --git a/StoneIsland/www/js/lib/account/LoginView.js b/StoneIsland/www/js/lib/account/LoginView.js index 31137c55..5058d335 100644 --- a/StoneIsland/www/js/lib/account/LoginView.js +++ b/StoneIsland/www/js/lib/account/LoginView.js @@ -3,24 +3,30 @@ var LoginView = View.extend({ el: "#login", events: { + "click .newuser": "newuser", "submit form": "submit", }, initialize: function(){ this.$form = this.$("form") + this.$msg = this.$(".msg") }, show: function(){ this.$form.get(0).reset() + this.$msg.html("* Your personal and payment information will always remain private") document.body.className = "login" }, + newuser: function(){ + app.router.go("account/signup") + }, + submit: function(e){ e.preventDefault() }, success: function(){ - // change login in ui to logout or whatever }, - -}) \ No newline at end of file + +}) -- cgit v1.2.3-70-g09d2