Fixup js/history.js
Change == to === and != to !==
This commit is contained in:
1 parent
8e01829bf0
commit
89d03a6aa6
1 file changed
+2
-2
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user