Fix up js/products-comparison.js
Replace == with ===
This commit is contained in:
1 parent
f15e8399ff
commit
4e46f39360
1 file changed
+2
-2
@@ -52,7 +52,7 @@ reloadProductComparison = function() {
|
|||||||
url: 'index.php?controller=products-comparison&ajax=1&action=add&id_product=' + idProduct,
|
url: 'index.php?controller=products-comparison&ajax=1&action=add&id_product=' + idProduct,
|
||||||
async: true,
|
async: true,
|
||||||
success: function(data){
|
success: function(data){
|
||||||
if (data == '0')
|
if (data === '0')
|
||||||
{
|
{
|
||||||
checkbox.attr('checked', false);
|
checkbox.attr('checked', false);
|
||||||
alert(max_item);
|
alert(max_item);
|
||||||
@@ -69,7 +69,7 @@ reloadProductComparison = function() {
|
|||||||
url: 'index.php?controller=products-comparison&ajax=1&action=remove&id_product=' + idProduct,
|
url: 'index.php?controller=products-comparison&ajax=1&action=remove&id_product=' + idProduct,
|
||||||
async: true,
|
async: true,
|
||||||
success: function(data){
|
success: function(data){
|
||||||
if (data == '0')
|
if (data === '0')
|
||||||
checkbox.attr('checked', true);
|
checkbox.attr('checked', true);
|
||||||
},
|
},
|
||||||
error: function(){
|
error: function(){
|
||||||
|
|||||||
Reference in new issue
Block a user