From 8303ac1b4e61c88d8c10dc0bcaafb18293dec97f Mon Sep 17 00:00:00 2001 From: gRoussac Date: Sun, 1 Mar 2015 18:23:32 +0100 Subject: [PATCH] // add preventDefault --- favoriteproducts.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/favoriteproducts.js b/favoriteproducts.js index f6196f3..669a7cd 100755 --- a/favoriteproducts.js +++ b/favoriteproducts.js @@ -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();