Fixup js/history.js

Change == to === and != to !==
This commit is contained in:
Milow committed 2012-11-23 22:06:11 -06:00
1 parent 8e01829bf0
commit 89d03a6aa6
1 file changed
+2 -2
+2 -2
View File
@@ -28,7 +28,7 @@ function showOrder(mode, var_content, file)
{ {
$.get( $.get(
file, file,
((mode == 1) ? {'id_order': var_content, 'ajax': true} : {'id_order_return': var_content, 'ajax': true}), ((mode === 1) ? {'id_order': var_content, 'ajax': true} : {'id_order_return': var_content, 'ajax': true}),
function(data) function(data)
{ {
$('#block-order-detail').fadeOut('slow', function() $('#block-order-detail').fadeOut('slow', function()
@@ -56,7 +56,7 @@ function showOrder(mode, var_content, file)
{ {
var maxQuantity = parseInt($(this).parent().find('.order_qte_span').text()); var maxQuantity = parseInt($(this).parent().find('.order_qte_span').text());
var quantity = parseInt($(this).val()); var quantity = parseInt($(this).val());
if (isNaN($(this).val()) && $(this).val() != '') if (isNaN($(this).val()) && $(this).val() !== '')
{ {
$(this).val(maxQuantity); $(this).val(maxQuantity);
} }