From 3e1029f00c94ea71c29e7af1e1eb748884249fac Mon Sep 17 00:00:00 2001 From: captainbeer Date: Wed, 22 Aug 2018 18:25:57 +0300 Subject: [PATCH] -Events pushing js added --- frontend/assets/AppAsset.php | 2 +- frontend/web/js/events.js | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 frontend/web/js/events.js diff --git a/frontend/assets/AppAsset.php b/frontend/assets/AppAsset.php index 2c6c782..7930c58 100755 --- a/frontend/assets/AppAsset.php +++ b/frontend/assets/AppAsset.php @@ -21,7 +21,7 @@ "js/script.js", "js/markerclusterer.js", "js/map.js", - + "js/events.js", ]; public $depends = [ 'yii\web\YiiAsset', diff --git a/frontend/web/js/events.js b/frontend/web/js/events.js new file mode 100644 index 0000000..81b50dd --- /dev/null +++ b/frontend/web/js/events.js @@ -0,0 +1,13 @@ +$(function() { + $(document).on('submit', '.section-forms #contact-form', function(e) { + console.log('Form from page'); + }); + + $(document).on('submit', '#callback #contact-form', function(e) { + console.log('Call me maby'); + }); + + $(document).on('submit', '#buy-form #contact-form', function(e) { + console.log('Hello from buy form'); + }); +}); \ No newline at end of file -- libgit2 0.21.4