Commit 3e1029f00c94ea71c29e7af1e1eb748884249fac

Authored by Alexey Boroda
1 parent ce23e2e1

-Events pushing js added

Showing 2 changed files with 14 additions and 1 deletions   Show diff stats
frontend/assets/AppAsset.php
... ... @@ -21,7 +21,7 @@
21 21 "js/script.js",
22 22 "js/markerclusterer.js",
23 23 "js/map.js",
24   -
  24 + "js/events.js",
25 25 ];
26 26 public $depends = [
27 27 'yii\web\YiiAsset',
... ...
frontend/web/js/events.js 0 → 100644
  1 +$(function() {
  2 + $(document).on('submit', '.section-forms #contact-form', function(e) {
  3 + console.log('Form from page');
  4 + });
  5 +
  6 + $(document).on('submit', '#callback #contact-form', function(e) {
  7 + console.log('Call me maby');
  8 + });
  9 +
  10 + $(document).on('submit', '#buy-form #contact-form', function(e) {
  11 + console.log('Hello from buy form');
  12 + });
  13 +});
0 14 \ No newline at end of file
... ...