Subversion Repositories SmartDukaan

Rev

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

Rev 5572 Rev 5594
Line 110... Line 110...
110
				window.location.reload();
110
				window.location.reload();
111
			}
111
			}
112
		});
112
		});
113
	});
113
	});
114
	
114
	
115
	function checkIfUserHasAddress()	{
115
	function checkIfUserHasAddress(){
116
		var addressEmpty = parseInt($('#addressEmpty').val());
116
		var addressEmpty = parseInt($('#addressEmpty').val());
117
		
117
		
118
		if (addressEmpty == 1)	{
118
		if (addressEmpty == 1)	{
119
			showAddAddressForm();
119
			showAddAddressForm();
120
		}
120
		}
121
	}
121
	}
122
	
122
	
123
	function showAddAddressForm(){
123
	function showAddAddressForm(){
124
		$('#main-right-container').hide();
124
		//$('#main-right-container').hide();
-
 
125
		$('#shipping-address-div').hide();
-
 
126
		$('#billing-address-div').hide();
125
		$('#frmShippingAddress').show();
127
		$('#frmShippingAddress').show();
126
	}
128
	}
127
	
129
	
128
	function showAddressList()	{
130
	function showAddressList()	{
129
		$('#frmShippingAddress').hide();
131
		$('#frmShippingAddress').hide();
130
		$('#main-right-container').show();
132
		//$('#main-right-container').show();
-
 
133
		$('#shipping-address-div').show();
-
 
134
		$('#billing-address-div').show();
131
	}
135
	}
132
});
136
});
133
 
137
 
134
function sumOfColumns(tableID, columnIndex, hasHeader)	{
138
function sumOfColumns(tableID, columnIndex, hasHeader)	{
135
	var tot = 0;
139
	var tot = 0;