Subversion Repositories SmartDukaan

Rev

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

Rev 25809 Rev 25813
Line 16... Line 16...
16
		$orderItemRow = $(planCheckedOn).closest('td');
16
		$orderItemRow = $(planCheckedOn).closest('td');
17
		$orderItemRow.find('.insuranceid').val($(this).data('key'));
17
		$orderItemRow.find('.insuranceid').val($(this).data('key'));
18
		$orderItemRow.find('.insuranceamount').val($(this).data('amount'));
18
		$orderItemRow.find('.insuranceamount').val($(this).data('amount'));
19
		$orderItemRow.find('.ram').val($itemDetails.find('.dgram').val());
19
		$orderItemRow.find('.ram').val($itemDetails.find('.dgram').val());
20
		$orderItemRow.find('.memory').val($itemDetails.find('.dgmemory').val());
20
		$orderItemRow.find('.memory').val($itemDetails.find('.dgmemory').val());
21
		$orderItemRow.find('.mfgdate').val(startDate);
21
		$orderItemRow.find('.mfgdate').val(mfgDate);
22
		$('#mobilePlansModal').modal('hide');
22
		$('#mobilePlansModal').modal('hide');
23
		calculateTotalAmount();
23
		calculateTotalAmount();
24
	});
24
	});
25
  
25
  
26
	$(".mk_restore").live('click', function() {
26
	$(".mk_restore").live('click', function() {
Line 39... Line 39...
39
			$("form#cd input[name=city]").val(customerAddress['city']);
39
			$("form#cd input[name=city]").val(customerAddress['city']);
40
			$('select[name=state] option:selected').val(customerAddress['state']);
40
			$('select[name=state] option:selected').val(customerAddress['state']);
41
			$("form#cd input[name=pinCode]").val(customerAddress['pinCode']);
41
			$("form#cd input[name=pinCode]").val(customerAddress['pinCode']);
42
			$("form#cd input[name=alternatePhone]").val(customerAddress['phoneNumber']);
42
			$("form#cd input[name=alternatePhone]").val(customerAddress['phoneNumber']);
43
			$("form#cd input[name=phone]").attr("addressId", customerObj['customerAddressId']);
43
			$("form#cd input[name=phone]").attr("addressId", customerObj['customerAddressId']);
44
			$("form#cd input[name=gender").val(customerObj['gender']);
-
 
45
			$("form#cd input[name=dateOfBirth").val(customerObj['dateOfBirth']);
-
 
46
		}
44
		}
47
	});
45
	});
48
 
46
 
49
	$("form#cd input.unitPrice").live('change', function() {
47
	$("form#cd input.unitPrice").live('change', function() {
50
		
48
		
Line 103... Line 101...
103
				`<div class="col-lg-3">
101
				`<div class="col-lg-3">
104
					<div class="thumbnail">
102
					<div class="thumbnail">
105
						<img class="card-img-top" src="${logosmapping.mobile_insurance_providers[plan.providerId]}" alt="${plan.providerName}">
103
						<img class="card-img-top" src="${logosmapping.mobile_insurance_providers[plan.providerId]}" alt="${plan.providerName}">
106
			      		<div class="caption" style="padding:9px 0 0">
104
			      		<div class="caption" style="padding:9px 0 0">
107
						    <div style="margin:0 0 -2px -2px">
105
						    <div style="margin:0 0 -2px -2px">
108
						    	<button class="btn btn-sm btn-default mk_plan_select" style="width:100%" 
106
						    	<button class="btn btn-lg btn-default mk_plan_select" style="width:100%" 
109
						    		data-key="${plan.productId}"
107
						    		data-key="${plan.productId}"
110
						    		data-amount="${plan.premium}"
108
						    		data-amount="${plan.premium}"
111
						    	>${plan.duration} Rs.<span class="currency">@${plan.premium}</span>
109
						    	>${plan.duration} Rs.<span class="currency">@${plan.premium}</span>
112
						    	</button>
110
						    	</button>
113
						    </div>
111
						    </div>
114
						</div>
112
						</div>
115
					</div>
113
					</div>
116
				</div>`;
114
				</div>`;
117
			templateArr.push(template);
115
			templateArr.push(template);
118
			if(index%4==3 || +index+1==plansList.length) {
116
			if(index%4==3 || +index+1==plansList.length) {
119
				templateArr = [`<div class="row col-lg-6">${templateArr.join('')}</div>`];
117
				templateArr = [`<div class="row col-lg-12">${templateArr.join('')}</div>`];
120
			}
118
			}
121
		}
119
		}
122
		htmlArr.push(`<div class="row"><h4>${key}</h4>${templateArr.join('')}</div>`);
120
		htmlArr.push(`<div class="row"><h4>${key}</h4>${templateArr.join('')}</div>`);
123
	}
121
	}
124
	$('#mobilePlansModal').find('.insurancedetails').html(htmlArr.join(''));
122
	$('#mobilePlansModal').find('.insurancedetails').html(htmlArr.join(''));