diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-11-09 02:04:26 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-11-09 02:04:26 -0500 |
| commit | 6257d7855a89b70d39baa7d91f2f0aa5dde77aaf (patch) | |
| tree | aa001fb5983b2706e262ea136162209138059988 /StoneIsland/www/js/lib/account/LoginView.js | |
| parent | 9cb9177accbbf6e4397cc71bc06dff0ccd47f441 (diff) | |
signup view
Diffstat (limited to 'StoneIsland/www/js/lib/account/LoginView.js')
| -rw-r--r-- | StoneIsland/www/js/lib/account/LoginView.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/StoneIsland/www/js/lib/account/LoginView.js b/StoneIsland/www/js/lib/account/LoginView.js index 31137c55..9c69489e 100644 --- a/StoneIsland/www/js/lib/account/LoginView.js +++ b/StoneIsland/www/js/lib/account/LoginView.js @@ -3,18 +3,25 @@ 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() }, @@ -22,5 +29,5 @@ var LoginView = View.extend({ success: function(){ // change login in ui to logout or whatever }, - -})
\ No newline at end of file + +}) |
