| Line 70... |
Line 70... |
| 70 |
if(index == 0) {
|
70 |
if(index == 0) {
|
| 71 |
var count = $(rows).length + " stores";
|
71 |
var count = $(rows).length + " stores";
|
| 72 |
} else if(index == 1) {
|
72 |
} else if(index == 1) {
|
| 73 |
var count = index + " store";
|
73 |
var count = index + " store";
|
| 74 |
} else {
|
74 |
} else {
|
| 75 |
var count= index + " stores"
|
75 |
var count= index + " stores";
|
| 76 |
}
|
76 |
}
|
| - |
|
77 |
trackEventWithGA("InStore Pickup Region", $('#zone-selector').val());
|
| 77 |
$('#store-address-header-text').html(" Select a pickup point (<b>" + count + "</b> available)");
|
78 |
$('#store-address-header-text').html(" Select a pickup point (<b>" + count + "</b> available)");
|
| 78 |
};
|
79 |
};
|
| 79 |
|
80 |
|
| 80 |
$("#zone-selector").change(showSpecificStores);
|
81 |
$("#zone-selector").change(showSpecificStores);
|
| 81 |
|
82 |
|
| 82 |
$(".unselected-tab").live('click', function() {
|
83 |
$(".unselected-tab").live('click', function() {
|
| 83 |
var tabToBeSelected = $(this).attr('id');
|
84 |
var tabToBeSelected = $(this).attr('id');
|
| - |
|
85 |
var deliveryType = "In-Store Pickup";
|
| 84 |
if(tabToBeSelected == 'tab-left') {
|
86 |
if(tabToBeSelected == 'tab-left') {
|
| 85 |
$("#tabSelector").val("myLocation");
|
87 |
$("#tabSelector").val("myLocation");
|
| 86 |
$('#tabSelectorForAddAddressForm').val('myLocation');
|
88 |
$('#tabSelectorForAddAddressForm').val('myLocation');
|
| 87 |
$('#newAddressFormHeading').text("Enter the address where you want the items to be delivered");
|
89 |
$('#newAddressFormHeading').text("Enter the address where you want the items to be delivered");
|
| - |
|
90 |
deliveryType = "Deliver to Address";
|
| 88 |
} else {
|
91 |
} else {
|
| 89 |
$("#tabSelector").val("HotSpot");
|
92 |
$("#tabSelector").val("HotSpot");
|
| 90 |
$('#tabSelectorForAddAddressForm').val('HotSpot');
|
93 |
$('#tabSelectorForAddAddressForm').val('HotSpot');
|
| 91 |
$('#newAddressFormHeading').text("Enter the address which you want printed on the bill");
|
94 |
$('#newAddressFormHeading').text("Enter the address which you want printed on the bill");
|
| 92 |
}
|
95 |
}
|
| - |
|
96 |
trackEventWithGA('DeliveryType', deliveryType);
|
| 93 |
$(this).removeClass('unselected-tab').addClass('selected-tab');
|
97 |
$(this).removeClass('unselected-tab').addClass('selected-tab');
|
| 94 |
$(this).siblings().removeClass('selected-tab').addClass('unselected-tab');
|
98 |
$(this).siblings().removeClass('selected-tab').addClass('unselected-tab');
|
| 95 |
var hiddenPane = $(this).parent().siblings('.hidden-div');
|
99 |
var hiddenPane = $(this).parent().siblings('.hidden-div');
|
| 96 |
$(this).parent().siblings().addClass('hidden-div');
|
100 |
$(this).parent().siblings().addClass('hidden-div');
|
| 97 |
$(hiddenPane).removeClass('hidden-div');
|
101 |
$(hiddenPane).removeClass('hidden-div');
|