| Line 20... |
Line 20... |
| 20 |
$orderItemRow.find('.memory').val($itemDetails.find('.dgmemory').val());
|
20 |
$orderItemRow.find('.memory').val($itemDetails.find('.dgmemory').val());
|
| 21 |
$orderItemRow.find('.mfgdate').val(mfgDate);
|
21 |
$orderItemRow.find('.mfgdate').val(mfgDate);
|
| 22 |
$('#mobilePlansModal').modal('hide');
|
22 |
$('#mobilePlansModal').modal('hide');
|
| 23 |
calculateTotalAmount();
|
23 |
calculateTotalAmount();
|
| 24 |
});
|
24 |
});
|
| 25 |
|
- |
|
| 26 |
$("#mk_restore").live('click', function() {
|
- |
|
| 27 |
var customerDetails = localStorage.getItem("customerDetails");
|
- |
|
| 28 |
if(customerDetails!=null) {
|
- |
|
| 29 |
customerObj = JSON.parse(customerDetails);
|
- |
|
| 30 |
$("form#cd input[name=firstName]").val(customerObj['firstName']);
|
- |
|
| 31 |
$("form#cd input[name=lastName]").val(customerObj['lastName']);
|
- |
|
| 32 |
$("form#cd input[name=phone]").val(customerObj['mobileNumber']);
|
- |
|
| 33 |
$("form#cd input[name=email]").val(customerObj['emailId']);
|
- |
|
| 34 |
$("form#cd input[name=gstNumber]").val(customerObj['gstNumber']);
|
- |
|
| 35 |
var customerAddress = customerObj['address'];
|
- |
|
| 36 |
$("form#cd input[name=line1]").val(customerAddress['line1']);
|
- |
|
| 37 |
$("form#cd input[name=line2]").val(customerAddress['line2']);
|
- |
|
| 38 |
$("form#cd input[name=landmark]").val(customerAddress['landmark']);
|
- |
|
| 39 |
$("form#cd input[name=city]").val(customerAddress['city']);
|
- |
|
| 40 |
$('select[name=state] option:selected').val(customerAddress['state']);
|
- |
|
| 41 |
$("form#cd input[name=pinCode]").val(customerAddress['pinCode']);
|
- |
|
| 42 |
$("form#cd input[name=alternatePhone]").val(customerAddress['phoneNumber']);
|
- |
|
| 43 |
$("form#cd input[name=phone]").attr("addressId", customerObj['customerAddressId']);
|
- |
|
| 44 |
}
|
- |
|
| 45 |
});
|
- |
|
| 46 |
|
25 |
|
| 47 |
$("form#cd input.unitPrice").live('change', function() {
|
26 |
$("form#cd input.unitPrice").live('change', function() {
|
| 48 |
|
27 |
|
| 49 |
var unitPrice = parseFloat($(this).val());
|
28 |
var unitPrice = parseFloat($(this).val());
|
| 50 |
if (isNaN(unitPrice)){
|
29 |
if (isNaN(unitPrice)){
|