summaryrefslogtreecommitdiff
path: root/public/assets/javascripts/ui/MasterView.js
diff options
context:
space:
mode:
authorJulie Lala <jules@okfoc.us>2014-06-09 07:48:34 -0400
committerJulie Lala <jules@okfoc.us>2014-06-09 07:48:34 -0400
commite8ba718205d41e75923264ef945178030b662c93 (patch)
tree97bff0c0ec0a2bd2b6efb7d5ddbb1ff60c102529 /public/assets/javascripts/ui/MasterView.js
parentd385f80d0942494410432f11d3f3ca0f05d9e4a9 (diff)
populate edit profile form
Diffstat (limited to 'public/assets/javascripts/ui/MasterView.js')
-rw-r--r--public/assets/javascripts/ui/MasterView.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/public/assets/javascripts/ui/MasterView.js b/public/assets/javascripts/ui/MasterView.js
index a39c6f0..5aca4e0 100644
--- a/public/assets/javascripts/ui/MasterView.js
+++ b/public/assets/javascripts/ui/MasterView.js
@@ -25,6 +25,8 @@ var MasterView = View.extend({
this.editProjectModal = new EditProjectModal()
this.editProfileModal = new EditProfileModal()
+ this.originalPath = window.location.pathname
+
for (var route in this.routes) {
if (window.location.pathname.indexOf(route) === 0) {
this[this.routes[route]]()
@@ -61,7 +63,6 @@ var MasterView = View.extend({
editProject: function(e){
e && e.preventDefault()
window.history.pushState(null, document.title, "/project/edit")
-
this.editProjectModal.load()
},