[-] FO: Fix #PSCFV-6375 always display the vat_number field for registration even if the european vat number module is disabled
This commit is contained in:
1 parent
808c286468
commit
a97a265649
5 files changed
+63
-79
No files matched your search
@@ -51,22 +51,20 @@ countriesNeedZipCode = new Array();
|
||||
$(function(){ldelim}
|
||||
$('.id_state option[value={if isset($smarty.post.id_state)}{$smarty.post.id_state}{else}{if isset($address->id_state)}{$address->id_state|escape:'htmlall':'UTF-8'}{/if}{/if}]').attr('selected', 'selected');
|
||||
{rdelim});
|
||||
{if $vat_management}
|
||||
{literal}
|
||||
$(document).ready(function() {
|
||||
$('#company').blur(function(){
|
||||
vat_number();
|
||||
});
|
||||
$(document).ready(function() {
|
||||
$('#company').blur(function(){
|
||||
vat_number();
|
||||
function vat_number()
|
||||
{
|
||||
if ($('#company').val() != '')
|
||||
$('#vat_number').show();
|
||||
else
|
||||
$('#vat_number').hide();
|
||||
}
|
||||
});
|
||||
{/literal}
|
||||
vat_number();
|
||||
function vat_number()
|
||||
{
|
||||
if ($('#company').val() != '')
|
||||
$('#vat_number').show();
|
||||
else
|
||||
$('#vat_number').hide();
|
||||
}
|
||||
});
|
||||
{/if}
|
||||
//]]>
|
||||
</script>
|
||||
|
||||
Reference in new issue
Block a user