Subversion Repositories SmartDukaan

Rev

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

Rev 5040 Rev 5572
Line 97... Line 97...
97
	$('#addresses .button-address-select').click(function(){
97
	$('#addresses .button-address-select').click(function(){
98
		var addressId = $(this).attr('id').split('_')[1];
98
		var addressId = $(this).attr('id').split('_')[1];
99
		$('#formChangeAddressTo_' + addressId).submit();
99
		$('#formChangeAddressTo_' + addressId).submit();
100
	});
100
	});
101
	
101
	
102
	$('#addresses .delete-address').click(function(){
102
	$('.shipping-page-addresses .delete-address').click(function(){
103
		var addressId = $(this).attr('id').split('_')[1];
103
		var addressId = $(this).attr('id').split('_')[1];
104
		
104
		
105
		jQuery.ajax({
105
		jQuery.ajax({
106
			type: "POST",
106
			type: "POST",
107
			url: "/address",
107
			url: "/address",
Line 119... Line 119...
119
			showAddAddressForm();
119
			showAddAddressForm();
120
		}
120
		}
121
	}
121
	}
122
	
122
	
123
	function showAddAddressForm(){
123
	function showAddAddressForm(){
124
		$('#addresses').hide();
124
		$('#main-right-container').hide();
125
		$('#frmShippingAddress').show();
125
		$('#frmShippingAddress').show();
126
	}
126
	}
127
	
127
	
128
	function showAddressList()	{
128
	function showAddressList()	{
129
		$('#frmShippingAddress').hide();
129
		$('#frmShippingAddress').hide();
130
		$('#addresses').show();
130
		$('#main-right-container').show();
131
	}
131
	}
132
});
132
});
133
 
133
 
134
function sumOfColumns(tableID, columnIndex, hasHeader)	{
134
function sumOfColumns(tableID, columnIndex, hasHeader)	{
135
	var tot = 0;
135
	var tot = 0;