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