Fix up js/products-comparison.js

Replace == with ===
This commit is contained in:
Milow committed 2012-11-23 22:48:16 -06:00
1 parent 76819eff1c
commit 773977c113
1 file changed
+3 -3
+3 -3
View File
@@ -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() {
});
}
});
}
}