Blame view

frontend/web/js/events.js 664 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
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
      $(document)
          .on('click', '.modal-link', function() {
              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...
26
  
3e1029f0   Alexey Boroda   -Events pushing j...
27
  });