From 4e46f393605da6b546921faad2a8027ce90a072e Mon Sep 17 00:00:00 2001 From: Milow <{email}> Date: Fri, 23 Nov 2012 22:48:16 -0600 Subject: [PATCH] Fix up js/products-comparison.js Replace == with === --- themes/default/js/products-comparison.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/themes/default/js/products-comparison.js b/themes/default/js/products-comparison.js index 567080d03..c2ee49175 100644 --- a/themes/default/js/products-comparison.js +++ b/themes/default/js/products-comparison.js @@ -52,7 +52,7 @@ reloadProductComparison = function() { url: 'index.php?controller=products-comparison&ajax=1&action=add&id_product=' + idProduct, async: true, success: function(data){ - if (data == '0') + if (data === '0') { checkbox.attr('checked', false); alert(max_item); @@ -69,7 +69,7 @@ reloadProductComparison = function() { url: 'index.php?controller=products-comparison&ajax=1&action=remove&id_product=' + idProduct, async: true, success: function(data){ - if (data == '0') + if (data === '0') checkbox.attr('checked', true); }, error: function(){ @@ -78,4 +78,4 @@ reloadProductComparison = function() { }); } }); -} \ No newline at end of file +}