Prevent page from jumping back to top when clicking the links to edit billing/shipping details

This commit is contained in:
Geert De Deckere 2012-02-28 14:06:58 +01:00
parent 4fab179206
commit 2e99884334
1 changed files with 2 additions and 2 deletions

View File

@ -24,12 +24,12 @@ jQuery( function($){
window.onbeforeunload = ''; window.onbeforeunload = '';
}); });
$('a.edit_address').click(function(){ $('a.edit_address').click(function(event){
$(this).hide(); $(this).hide();
$(this).closest('.order_data').find('div.address').hide(); $(this).closest('.order_data').find('div.address').hide();
$(this).closest('.order_data').find('div.edit_address').show(); $(this).closest('.order_data').find('div.edit_address').show();
event.preventDefault();
}); });
// Chosen selects // Chosen selects