[-] FO : Bad checkbox behavior in FF in OPC
This commit is contained in:
@@ -482,17 +482,7 @@ $(function() {
|
|||||||
|
|
||||||
// INVOICE ADDRESS
|
// INVOICE ADDRESS
|
||||||
$('#invoice_address').click(function() {
|
$('#invoice_address').click(function() {
|
||||||
if ($('#invoice_address:checked').length > 0)
|
bindCheckbox();
|
||||||
{
|
|
||||||
$('#opc_invoice_address').slideDown('slow');
|
|
||||||
if ($('#company_invoice').val() === '')
|
|
||||||
$('#vat_number_block_invoice').hide();
|
|
||||||
updateState('invoice');
|
|
||||||
updateNeedIDNumber('invoice');
|
|
||||||
updateZipCode('invoice');
|
|
||||||
}
|
|
||||||
else
|
|
||||||
$('#opc_invoice_address').slideUp('slow');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// VALIDATION / CREATION AJAX
|
// VALIDATION / CREATION AJAX
|
||||||
@@ -627,6 +617,7 @@ $(function() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bindCheckbox();
|
||||||
bindInputs();
|
bindInputs();
|
||||||
|
|
||||||
$('#opc_account_form input,select,textarea').change(function() {
|
$('#opc_account_form input,select,textarea').change(function() {
|
||||||
@@ -639,6 +630,21 @@ $(function() {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function bindCheckbox()
|
||||||
|
{
|
||||||
|
if ($('#invoice_address:checked').length > 0)
|
||||||
|
{
|
||||||
|
$('#opc_invoice_address').slideDown('slow');
|
||||||
|
if ($('#company_invoice').val() === '')
|
||||||
|
$('#vat_number_block_invoice').hide();
|
||||||
|
updateState('invoice');
|
||||||
|
updateNeedIDNumber('invoice');
|
||||||
|
updateZipCode('invoice');
|
||||||
|
}
|
||||||
|
else
|
||||||
|
$('#opc_invoice_address').slideUp('slow');
|
||||||
|
}
|
||||||
|
|
||||||
function bindInputs()
|
function bindInputs()
|
||||||
{
|
{
|
||||||
// Order message update
|
// Order message update
|
||||||
|
|||||||
Reference in New Issue
Block a user