diff options
| author | ryderr <r@okfoc.us> | 2014-09-29 19:07:47 -0400 |
|---|---|---|
| committer | ryderr <r@okfoc.us> | 2014-09-29 19:07:47 -0400 |
| commit | ce0b9366494940fea3da4f9429dd245e856d320e (patch) | |
| tree | 68653ce5417611b711e21fd27bab66b63e1ffe4c /public/assets/javascripts/ui/editor/EditorSettings.js | |
| parent | 55c14cb5cdc2e3a4b693816cc60dd1c2433b0ff2 (diff) | |
| parent | 98c48d7a0f541d1d807b3303565274c1b3ff9b48 (diff) | |
Merge branch 'master' of github.com:okfocus/vvalls
Diffstat (limited to 'public/assets/javascripts/ui/editor/EditorSettings.js')
| -rw-r--r-- | public/assets/javascripts/ui/editor/EditorSettings.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/public/assets/javascripts/ui/editor/EditorSettings.js b/public/assets/javascripts/ui/editor/EditorSettings.js index f74b535..92eff2b 100644 --- a/public/assets/javascripts/ui/editor/EditorSettings.js +++ b/public/assets/javascripts/ui/editor/EditorSettings.js @@ -10,7 +10,7 @@ var EditorSettings = FormView.extend({ "keydown": 'stopPropagation', "keydown [name=name]": 'enterSubmit', "click [data-role='show-collaborators']": 'showCollaborators', - "click [data-role='save-project']": 'save', + "click [data-role='save-project']": 'clickSave', "click [data-role='clone-project']": 'clone', "click [data-role='clear-project']": 'clear', "click [data-role='destroy-project']": 'destroy', @@ -171,6 +171,11 @@ var EditorSettings = FormView.extend({ return false }, + clickSave: function(){ + this.toggle(false) + this.save() + }, + success: function(data){ this.$id.val(data._id) this.$name.val(data.name) @@ -182,8 +187,6 @@ var EditorSettings = FormView.extend({ window.history.pushState(null, document.title, "/project/" + data.slug + "/edit") this.parent.data = data - - this.toggle(false) }, }) |
