Subversion Repositories SmartDukaan

Rev

Rev 28646 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 28646 Rev 37498
Line 90... Line 90...
90
</section>
90
</section>
91
		
91
		
92
	<script>
92
	<script>
93
	$(document).ready(function() {
93
	$(document).ready(function() {
94
	
94
	
-
 
95
	// Fragment is re-injected with .html(), which re-runs this script; clear the
-
 
96
	// namespace first so handlers replace rather than stack.
-
 
97
	$(document).off('.pricedroptabular');
95
	$(document).on('click', ".my-price-drop", function() {
98
	$(document).on('click.pricedroptabular', ".my-price-drop", function() {
96
	  var fofoId= $(this).data('id');
99
	  var fofoId= $(this).data('id');
97
		var brand = $(this).closest("tr").children('td:first').text();
100
		var brand = $(this).closest("tr").children('td:first').text();
98
	
101
	
99
  var yearMonth = $(this).closest('table').find('.price-drop-header input[type=hidden]').eq( $(this).closest("td").index()-2).val();
102
  var yearMonth = $(this).closest('table').find('.price-drop-header input[type=hidden]').eq( $(this).closest("td").index()-2).val();
100
    console.log("id"+yearMonth+brand+fofoId);
103
    console.log("id"+yearMonth+brand+fofoId);
Line 103... Line 106...
103
                    });    
106
                    });    
104
   
107
   
105
   
108
   
106
    });
109
    });
107
    
110
    
108
    $(document).on('click', ".price-drop-six-month", function() {
111
    $(document).on('click.pricedroptabular', ".price-drop-six-month", function() {
109
	  var fofoId= $(this).data('id');
112
	  var fofoId= $(this).data('id');
110
		var brand = $(this).closest("tr").children('td:first').text();
113
		var brand = $(this).closest("tr").children('td:first').text();
111
	
114
	
112
     console.log("id"+brand);
115
     console.log("id"+brand);
113
      console.log("fofoId"+fofoId);
116
      console.log("fofoId"+fofoId);