diff options
| author | ryderr <r@okfoc.us> | 2014-11-04 15:35:50 -0500 |
|---|---|---|
| committer | ryderr <r@okfoc.us> | 2014-11-04 15:35:50 -0500 |
| commit | 39d502a7609da3ada15be163b8400994c9edecd6 (patch) | |
| tree | 2f4947dcbbd91f0f0c515120ccaa625a7352597a /public/assets/javascripts/ui/lib/FormView.js | |
| parent | 5df29b91f28f9557bd7dcd3d27969b06890610ec (diff) | |
| parent | 43b211e416fb7154079586de7b75807bd1a5ac28 (diff) | |
Merge branch 'master' of github.com:okfocus/vvalls
Diffstat (limited to 'public/assets/javascripts/ui/lib/FormView.js')
| -rw-r--r-- | public/assets/javascripts/ui/lib/FormView.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/public/assets/javascripts/ui/lib/FormView.js b/public/assets/javascripts/ui/lib/FormView.js index 17b748a..b3a4c71 100644 --- a/public/assets/javascripts/ui/lib/FormView.js +++ b/public/assets/javascripts/ui/lib/FormView.js @@ -1,6 +1,7 @@ var FormView = View.extend({ method: "post", + useMinotaur: false, events: { "submit form": "save" @@ -88,8 +89,15 @@ var FormView = View.extend({ processData: false, contentType: false, }) + + if (this.useMinotaur) { + Minotaur.show() + } request.done($.proxy(function (response) { + if (this.useMinotaur) { + Minotaur.hide() + } if (response.error) { var errors = [] for (var key in response.error.errors) { |
