Subversion Repositories SmartDukaan

Rev

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

Rev 5572 Rev 5594
Line 43... Line 43...
43
$(".unselected-tab").live('click', function() {
43
$(".unselected-tab").live('click', function() {
44
	var tabToBeSelected = $(this).attr('id');
44
	var tabToBeSelected = $(this).attr('id');
45
	if(tabToBeSelected == 'tab-left') {
45
	if(tabToBeSelected == 'tab-left') {
46
		$("#tabSelector").val("myLocation");
46
		$("#tabSelector").val("myLocation");
47
		$('#tabSelectorForAddAddressForm').val('myLocation');
47
		$('#tabSelectorForAddAddressForm').val('myLocation');
48
		
-
 
-
 
48
		$('#newAddressFormHeading').text("Enter the address where you want the items to be delivered");
49
	} else {
49
	} else {
50
		$("#tabSelector").val("HotSpot");
50
		$("#tabSelector").val("HotSpot");
51
		$('#tabSelectorForAddAddressForm').val('HotSpot');
51
		$('#tabSelectorForAddAddressForm').val('HotSpot');
-
 
52
		$('#newAddressFormHeading').text("Enter the address which you want printed on the bill");
52
	}
53
	}
53
	$(this).removeClass('unselected-tab').addClass('selected-tab');
54
	$(this).removeClass('unselected-tab').addClass('selected-tab');
54
	$(this).siblings().removeClass('selected-tab').addClass('unselected-tab');
55
	$(this).siblings().removeClass('selected-tab').addClass('unselected-tab');
55
	var hiddenPane = $(this).parent().siblings('.hidden-div');
56
	var hiddenPane = $(this).parent().siblings('.hidden-div');
56
	$(this).parent().siblings().addClass('hidden-div');
57
	$(this).parent().siblings().addClass('hidden-div');