diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-11-09 01:48:51 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-11-09 01:48:51 -0500 |
| commit | 9cb9177accbbf6e4397cc71bc06dff0ccd47f441 (patch) | |
| tree | 8f1c1ab7e78da7ecace35db86f14b38119d87e1d /StoneIsland/www/js/lib/account | |
| parent | dad5f3f0c3c13e8334a6a0ea522c5a2bfe8cd830 (diff) | |
login view
Diffstat (limited to 'StoneIsland/www/js/lib/account')
| -rw-r--r-- | StoneIsland/www/js/lib/account/LoginView.js | 10 | ||||
| -rw-r--r-- | StoneIsland/www/js/lib/account/LogoutView.js | 6 |
2 files changed, 4 insertions, 12 deletions
diff --git a/StoneIsland/www/js/lib/account/LoginView.js b/StoneIsland/www/js/lib/account/LoginView.js index 3b409b3d..31137c55 100644 --- a/StoneIsland/www/js/lib/account/LoginView.js +++ b/StoneIsland/www/js/lib/account/LoginView.js @@ -11,14 +11,10 @@ var LoginView = View.extend({ }, show: function(){ - this.$form.reset() - document.body.classList.add("login") + this.$form.get(0).reset() + document.body.className = "login" }, - - hide: function(){ - document.body.classList.remove("login") - }, - + submit: function(e){ e.preventDefault() }, diff --git a/StoneIsland/www/js/lib/account/LogoutView.js b/StoneIsland/www/js/lib/account/LogoutView.js index fffe661a..d5b70aff 100644 --- a/StoneIsland/www/js/lib/account/LogoutView.js +++ b/StoneIsland/www/js/lib/account/LogoutView.js @@ -6,11 +6,7 @@ var LogoutView = View.extend({ }, show: function(){ - document.body.classList.add("logout") - }, - - hide: function(){ - document.body.classList.remove("logout") + document.body.className = "logout" }, submit: function(e){ |
