summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/account/LogoutView.js
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/www/js/lib/account/LogoutView.js')
-rw-r--r--StoneIsland/www/js/lib/account/LogoutView.js24
1 files changed, 24 insertions, 0 deletions
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