diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-11-07 16:49:17 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-11-07 17:00:35 -0500 |
| commit | aa23fc23b5a8cf43d115bcf3953806e66dadf1c3 (patch) | |
| tree | eecb7095fcbb4d1c01661bae95fdad6dab2460dd /StoneIsland/www/js/lib/nav | |
| parent | ebf29872c4e9108776cd5022450a7d6274ed5d5f (diff) | |
stub in account views..
Diffstat (limited to 'StoneIsland/www/js/lib/nav')
| -rw-r--r-- | StoneIsland/www/js/lib/nav/LoginView.js | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/StoneIsland/www/js/lib/nav/LoginView.js b/StoneIsland/www/js/lib/nav/LoginView.js deleted file mode 100644 index 60f6263e..00000000 --- a/StoneIsland/www/js/lib/nav/LoginView.js +++ /dev/null @@ -1,57 +0,0 @@ -var LoginView = View.extend({ - - el: "#login", - - events: { - "click .close": "hide", - "click .login_ask": "login", - "click .signup_ask": "signup", - "submit form": "submit", - }, - - mode: null, - - initialize: function(){ - this.$form = this.$("form") - this.$email = this.$("[name=email]") - this.$password = this.$("[name=password]") - }, - - show: function(){ - this.$form.hide() - this.$email.val("") - this.$password.val("") - app.curtain.show() - document.body.classList.add("login") - }, - - hide: function(){ - app.curtain.hide() - document.body.classList.remove("login") - }, - - login: function(){ - this.mode = "login" - this.$form.show() - }, - - signup: function(){ - this.mode = "signup" - this.$form.show() - }, - - submit: function(e){ - e.preventDefault() - if (this.mode == "login") { - // login api - } - else { - // signup api - } - }, - - success: function(){ - // change login in ui to logout or whatever - }, - -})
\ No newline at end of file |
