Subversion Repositories SmartDukaan

Rev

Rev 30859 | Rev 30867 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 30859 Rev 30866
Line -... Line 1...
-
 
1
 
1
$(function() {
2
$(function() {
2
 
3
 
3
	$(document).on('click', ".sd-credit", function() {
4
	$(document).on('click', ".sd-credit", function() {
4
 
5
 
5
		loadSdCredit("main-content");
6
		loadSdCredit("main-content");
Line 51... Line 52...
51
			// Do nothing!
52
			// Do nothing!
52
		}
53
		}
53
	});
54
	});
54
 
55
 
55
 
56
 
-
 
57
 
-
 
58
 
56
	$(document).on('click', '.credit-requirement-send', function() {
59
	$(document).on('click', '.credit-requirement-send', function() {
57
		var row = $(this).closest("tr");
60
		var row = $(this).closest("tr");
58
		console.log(row);
61
		console.log(row);
59
		var rowIndex = $(this).closest('tr').prevAll().length;
62
		var rowIndex = $(this).closest('tr').prevAll().length;
60
		console.log(rowIndex);
63
		console.log(rowIndex);
61
		var securityCheck = $(row).find(".check input[type=hidden]").val();
64
		var securityCheck = $(row).find(".checkhidden input[type=hidden]").val();
-
 
65
 
-
 
66
		console.log(securityCheck)
62
		var fofoId = $(row).find("td:eq(0)").text();
67
		var fofoId = $(row).find("td:eq(0)").text();
63
 
68
 
-
 
69
 
-
 
70
 
64
		var limit = $(row).find("td:eq(5) input[type='text']").val();
71
		var limit = $(row).find("td:eq(5) input[type='text']").val();
65
		var interest = $(row).find("td:eq(8) input[type='text']").val();
72
		var interest = $(row).find("td:eq(8) input[type='text']").val();
66
		var freedays = $(row).find("td:eq(9) input[type='text']").val();
73
		var freedays = $(row).find("td:eq(9) input[type='text']").val();
67
		var creditDays = $(row).find("td:eq(10) input[type='text']").val();
74
		var creditDays = $(row).find("td:eq(10) input[type='text']").val();
68
 
75