Commit ca764699b4c2557bdead0856423a17417910dff4

Authored by Timur Kastemirov
1 parent ab9c01bb

double submition removed

Showing 1 changed file with 0 additions and 35 deletions   Show diff stats
frontend/web/js/script.js
... ... @@ -2,41 +2,6 @@ $(
2 2 function() {
3 3  
4 4 /**
5   - * Modal form submit code
6   - */
7   - $(document)
8   - .on(
9   - 'beforeSubmit', '#feedback-form', function(e) {
10   - var f = this;
11   - var form = $(this);
12   - var formData = form.serialize();
13   - $.ajax(
14   - {
15   - url: form.attr("action"),
16   - type: form.attr("method"),
17   - data: formData,
18   - success: function(data) {
19   - f.reset();
20   - $('#feedback-modal')
21   - .modal('hide');
22   - $('#success-modal')
23   - .modal('show');
24   - },
25   - error: function() {
26   - $('#feedback-modal')
27   - .modal('hide');
28   - }
29   - }
30   - );
31   - }
32   - )
33   - .on(
34   - 'submit', '#feedback-form', function(e) {
35   - e.preventDefault();
36   - }
37   - );
38   -
39   - /**
40 5 * Contact form submitting
41 6 */
42 7 $(document)
... ...