summaryrefslogtreecommitdiff
path: root/public/assets/javascripts/ui/Router.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/assets/javascripts/ui/Router.js')
-rw-r--r--public/assets/javascripts/ui/Router.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/public/assets/javascripts/ui/Router.js b/public/assets/javascripts/ui/Router.js
index fe544ae..5b75162 100644
--- a/public/assets/javascripts/ui/Router.js
+++ b/public/assets/javascripts/ui/Router.js
@@ -17,6 +17,7 @@ var Router = View.extend({
"/login": 'signin',
"/signup": 'signup',
"/project/new": 'newProject',
+ "/profile": 'profile',
"/profile/edit": 'editProfile',
"/about/:name/edit": 'editDocument',
"/about/new": 'newDocument',
@@ -98,6 +99,14 @@ var Router = View.extend({
this.editProjectModal.load()
},
+ profile: function(e){
+ var classes = ['one', 'two', 'three', 'four',
+ 'five', 'six', 'seven', 'eight',
+ 'nine', 'ten', 'eleven', 'twelve',
+ 'thirteen'];
+ $(".bio").addClass(choice(classes));
+ },
+
editProfile: function(e){
e && e.preventDefault()
window.history.pushState(null, document.title, "/profile/edit")