diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-11-04 15:00:00 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-11-04 15:00:00 -0500 |
| commit | 43b211e416fb7154079586de7b75807bd1a5ac28 (patch) | |
| tree | bce16d0feb74f4ef2479a1772249dac599187bb3 /public/assets/javascripts/ui/lib/FormView.js | |
| parent | 4e8d076cdf1882c78ea778d100ab8f6281b880fe (diff) | |
use minotaur
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) { |
