From ca764699b4c2557bdead0856423a17417910dff4 Mon Sep 17 00:00:00 2001 From: timur Date: Fri, 10 Nov 2017 10:53:46 +0200 Subject: [PATCH] double submition removed --- frontend/web/js/script.js | 35 ----------------------------------- 1 file changed, 0 insertions(+), 35 deletions(-) diff --git a/frontend/web/js/script.js b/frontend/web/js/script.js index 95c5631..7791d40 100755 --- a/frontend/web/js/script.js +++ b/frontend/web/js/script.js @@ -2,41 +2,6 @@ $( function() { /** - * Modal form submit code - */ - $(document) - .on( - 'beforeSubmit', '#feedback-form', function(e) { - var f = this; - var form = $(this); - var formData = form.serialize(); - $.ajax( - { - url: form.attr("action"), - type: form.attr("method"), - data: formData, - success: function(data) { - f.reset(); - $('#feedback-modal') - .modal('hide'); - $('#success-modal') - .modal('show'); - }, - error: function() { - $('#feedback-modal') - .modal('hide'); - } - } - ); - } - ) - .on( - 'submit', '#feedback-form', function(e) { - e.preventDefault(); - } - ); - - /** * Contact form submitting */ $(document) -- libgit2 0.21.4