Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

Commit

Permalink
// add preventDefault
Browse files Browse the repository at this point in the history
  • Loading branch information
gRoussac committed Mar 1, 2015
1 parent a9d4b04 commit 8303ac1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion favoriteproducts.js
Expand Up @@ -76,8 +76,9 @@ $(document).ready(function(){
});
});

$('[rel^=ajax_id_favoriteproduct_]').click(function()
$('[rel^=ajax_id_favoriteproduct_]').click(function(e)
{
e.preventDefault();
var idFavoriteProduct = $(this).attr('rel').replace('ajax_id_favoriteproduct_', '');
var parent = $(this).parent().parent();

Expand Down

0 comments on commit 8303ac1

Please sign in to comment.