Blame view

frontend/web/js/events.js 700 Bytes
3e1029f0   Alexey Boroda   -Events pushing j...
1
  $(function() {
bc2c1a08   Alexey Boroda   -Added some data ...
2
      var clicked = null;
3e1029f0   Alexey Boroda   -Events pushing j...
3
  
bc2c1a08   Alexey Boroda   -Added some data ...
4
5
      $(document)
          .on('click', '.modal-link', function() {
68bce13d   Alexey Boroda   -Added some data ...
6
              console.log('clicked');
bc2c1a08   Alexey Boroda   -Added some data ...
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
              clicked = $(this)
                  .data('event');
          });
  
      $(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');
              console.log(clicked);
          });
  
      $(document)
          .on('submit', '#buy-form #contact-form', function(e) {
              console.log('Hello from buy form');
              console.log(clicked);
          });
3e1029f0   Alexey Boroda   -Events pushing j...
27
  
3e1029f0   Alexey Boroda   -Events pushing j...
28
  });