diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-07-17 12:18:45 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-07-17 12:18:45 -0400 |
| commit | 4ee827ad464dfa0edb664d27e5069811877deb1e (patch) | |
| tree | 69c6ecb890a6af7f6c247c74f81bc36db591e970 /public/assets/javascripts/ui/site/DocumentModal.js | |
| parent | b97f3d39ac0e387385aae2685dbe830ee53a686c (diff) | |
| parent | f20841988ccd27780d3801e4a6c32bf9afcc9368 (diff) | |
merge
Diffstat (limited to 'public/assets/javascripts/ui/site/DocumentModal.js')
| -rw-r--r-- | public/assets/javascripts/ui/site/DocumentModal.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/public/assets/javascripts/ui/site/DocumentModal.js b/public/assets/javascripts/ui/site/DocumentModal.js index 6f16169..067977d 100644 --- a/public/assets/javascripts/ui/site/DocumentModal.js +++ b/public/assets/javascripts/ui/site/DocumentModal.js @@ -20,7 +20,7 @@ var DocumentModal = ModalFormView.extend({ this.action = this.updateAction - $.get("/api/docs", { name: name }, $.proxy(function(data){ + $.get("/api/docs", { name: name }, function(data){ if (data.isNew) { this.action = this.createAction } @@ -31,7 +31,7 @@ var DocumentModal = ModalFormView.extend({ this.$("[name='new_name']").val(name) this.show() - }, this)) + }.bind(this)) }, success: function(res){ |
