diff options
author | Alexander Maltsev <12084378+itchief@users.noreply.github.com> | 2020-03-21 10:12:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-21 10:12:45 +0300 |
commit | c1b59068e5d0b7e446a6a82f0508fbb50f47f0fa (patch) | |
tree | eaeac9a957d092f421a42fcb7aca2d47d1e3877e | |
parent | f5021d15550e464169fca80a4aa9062c6c7e0162 (diff) |
Update process-forms.js
-rw-r--r-- | feedback/js/process-forms.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/feedback/js/process-forms.js b/feedback/js/process-forms.js index cc9eb99..c29da81 100644 --- a/feedback/js/process-forms.js +++ b/feedback/js/process-forms.js @@ -152,6 +152,7 @@ ProcessForm.prototype = function () { // отправка формы var _sendForm = function (_this) { + $(document).trigger('beforeSubmit', [_this._form]); if (!_validateForm(_this)) { if (_this._form.find('.is-invalid').length > 0) { if (_this._form.find('.is-invalid').hasClass('file')) { @@ -377,4 +378,4 @@ ProcessForm.prototype = function () { init: _init, reset: _reset } -}();
\ No newline at end of file +}(); |