summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/account
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/www/js/lib/account')
-rw-r--r--StoneIsland/www/js/lib/account/LoginView.js3
-rw-r--r--StoneIsland/www/js/lib/account/LogoutView.js24
-rw-r--r--StoneIsland/www/js/lib/account/PaymentView.js2
3 files changed, 25 insertions, 4 deletions
diff --git a/StoneIsland/www/js/lib/account/LoginView.js b/StoneIsland/www/js/lib/account/LoginView.js
index 40cc29ba..3b409b3d 100644
--- a/StoneIsland/www/js/lib/account/LoginView.js
+++ b/StoneIsland/www/js/lib/account/LoginView.js
@@ -6,8 +6,6 @@ var LoginView = View.extend({
"submit form": "submit",
},
- mode: null,
-
initialize: function(){
this.$form = this.$("form")
},
@@ -18,7 +16,6 @@ var LoginView = View.extend({
},
hide: function(){
- app.curtain.hide()
document.body.classList.remove("login")
},
diff --git a/StoneIsland/www/js/lib/account/LogoutView.js b/StoneIsland/www/js/lib/account/LogoutView.js
new file mode 100644
index 00000000..fffe661a
--- /dev/null
+++ b/StoneIsland/www/js/lib/account/LogoutView.js
@@ -0,0 +1,24 @@
+var LogoutView = View.extend({
+
+ el: "#logout",
+
+ events: {
+ },
+
+ show: function(){
+ document.body.classList.add("logout")
+ },
+
+ hide: function(){
+ document.body.classList.remove("logout")
+ },
+
+ submit: function(e){
+ e.preventDefault()
+ },
+
+ success: function(){
+ // change login in ui to logout or whatever
+ },
+
+}) \ No newline at end of file
diff --git a/StoneIsland/www/js/lib/account/PaymentView.js b/StoneIsland/www/js/lib/account/PaymentView.js
index 1ce91283..74727648 100644
--- a/StoneIsland/www/js/lib/account/PaymentView.js
+++ b/StoneIsland/www/js/lib/account/PaymentView.js
@@ -30,5 +30,5 @@ var AddressView = View.extend({
serialize: function(){
},
-
+
}) \ No newline at end of file