Subversion Repositories SmartDukaan

Rev

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

Rev 32051 Rev 32055
Line 35... Line 35...
35
		var data = table.row(this).data();
35
		var data = table.row(this).data();
36
 
36
 
37
 
37
 
38
		$(this).find(":input").attr('disabled', false).show();
38
		$(this).find(":input").attr('disabled', false).show();
39
 
39
 
40
	/*	$(this).find("input[name=interestRate]").attr('disabled', true);
40
		/*	$(this).find("input[name=interestRate]").attr('disabled', true);
41
		$(this).find("input[name=freeDays]").attr('disabled', true);
41
			$(this).find("input[name=freeDays]").attr('disabled', true);
42
		$(this).find("input[name=creditDays]").attr('disabled', true);
42
			$(this).find("input[name=creditDays]").attr('disabled', true);
43
 */
43
	 */
44
 
44
 
45
	});
45
	});
46
 
46
 
47
	$(document).on('input', 'table#sdCredit input[type=file]', function() {
47
	$(document).on('input', 'table#sdCredit input[type=file]', function() {
48
		if (confirm('Confirm upload ?')) {
48
		if (confirm('Confirm upload ?')) {
Line 125... Line 125...
125
		var rowIndex = $(this).closest('tr').prevAll().length;
125
		var rowIndex = $(this).closest('tr').prevAll().length;
126
		console.log(rowIndex);
126
		console.log(rowIndex);
127
		var id = $(row).find("td:eq(0)").text();
127
		var id = $(row).find("td:eq(0)").text();
128
 
128
 
129
 
129
 
130
		var approvalAmount = $(row).find("td:eq(16) input[type='text']").val();
130
		var approvalAmount = $(row).find(".approveamount input[type='text']").val();
131
		var freedays = $(row).find("td:eq(17) input[type='text']").val();
131
		var freedays = $(row).find(".freedays input[type='text']").val();
132
 
132
 
133
 
133
 
134
		var status = $(row).find("td:eq(18) option:selected").val();
134
		var status = $(row).find("td:eq(18) option:selected").val();
135
 
135
 
136
		var stockHold = $(row).find("td:eq(19) input[type='checkbox']").is(":checked") ? true : false;
136
		var stockHold = $(row).find("td:eq(19) input[type='checkbox']").is(":checked") ? true : false;