This commit is contained in:
gRoussac committed 2013-10-24 10:00:19 +02:00
1 parent 1cc0134ec3
commit 81945cef71
1 file changed
+2 -2
+2 -2
View File
@@ -64,14 +64,14 @@ $(document).ready(function() {
}); });
function vat_number() function vat_number()
{ {
if ($('#company').val() != '') if (($('#company').length) && ($('#company').val() != ''))
$('#vat_number').show(); $('#vat_number').show();
else else
$('#vat_number').hide(); $('#vat_number').hide();
} }
function vat_number_invoice() function vat_number_invoice()
{ {
if ($('#company_invoice').val() != '') if (($('#company_invoice').length) && ($('#company_invoice').val() != ''))
$('#vat_number_block_invoice').show(); $('#vat_number_block_invoice').show();
else else
$('#vat_number_block_invoice').hide(); $('#vat_number_block_invoice').hide();