Subversion Repositories SmartDukaan

Rev

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

Rev 33838 Rev 37498
Line 79... Line 79...
79
 
79
 
80
 
80
 
81
<script>
81
<script>
82
       $(document).ready(function() {
82
       $(document).ready(function() {
83
	
83
	
-
 
84
	// Fragment is re-injected with .html(), which re-runs this script; clear the
-
 
85
	// namespace first so handlers replace rather than stack.
-
 
86
	$(document).off('.upgradeoffertabular');
84
	$(document).on('click', ".upgrade-offer-yearmonth", function() {
87
	$(document).on('click.upgradeoffertabular', ".upgrade-offer-yearmonth", function() {
85
	  var fofoId= $(this).data('id');
88
	  var fofoId= $(this).data('id');
86
		var brand = $(this).closest("tr").children('td:first').text();
89
		var brand = $(this).closest("tr").children('td:first').text();
87
	
90
	
88
	  var yearMonth = $(this).closest('table').find('.upgrade-header input[type=hidden]').eq( $(this).closest("td").index()-2).val();
91
	  var yearMonth = $(this).closest('table').find('.upgrade-header input[type=hidden]').eq( $(this).closest("td").index()-2).val();
89
	    console.log("id"+yearMonth+brand+fofoId);
92
	    console.log("id"+yearMonth+brand+fofoId);
Line 92... Line 95...
92
	                    });    
95
	                    });    
93
	   
96
	   
94
	   
97
	   
95
	    });
98
	    });
96
    
99
    
97
    $(document).on('click', ".offer-before-six-month", function() {
100
    $(document).on('click.upgradeoffertabular', ".offer-before-six-month", function() {
98
	  var fofoId= $(this).data('id');
101
	  var fofoId= $(this).data('id');
99
	  var brand = $(this).closest("tr").children('td:first').text();
102
	  var brand = $(this).closest("tr").children('td:first').text();
100
	
103
	
101
     console.log("id"+brand);
104
     console.log("id"+brand);
102
      console.log("fofoId"+fofoId);
105
      console.log("fofoId"+fofoId);