[-] 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:
@@ -52,23 +52,21 @@ $(function(){ldelim}
|
||||
$('.id_state option[value={if isset($smarty.post.id_state)}{$smarty.post.id_state|intval}{else}{if isset($address)}{$address->id_state|intval}{/if}{/if}]').attr('selected', true);
|
||||
{rdelim});
|
||||
//]]>
|
||||
{if $vat_management}
|
||||
{literal}
|
||||
$(document).ready(function() {
|
||||
$('#company').blur(function(){
|
||||
vat_number();
|
||||
});
|
||||
{literal}
|
||||
$(document).ready(function() {
|
||||
$('#company').blur(function(){
|
||||
vat_number();
|
||||
function vat_number()
|
||||
{
|
||||
if ($('#company').val() != '')
|
||||
$('#vat_number').show();
|
||||
else
|
||||
$('#vat_number').hide();
|
||||
}
|
||||
});
|
||||
{/literal}
|
||||
{/if}
|
||||
vat_number();
|
||||
function vat_number()
|
||||
{
|
||||
if ($('#company').val() != '')
|
||||
$('#vat_number').show();
|
||||
else
|
||||
$('#vat_number').hide();
|
||||
}
|
||||
});
|
||||
{/literal}
|
||||
</script>
|
||||
|
||||
<h1>{if !isset($email_create)}{l s='Log in'}{else}{l s='Create an account'}{/if}</h1>
|
||||
|
||||
Reference in New Issue
Block a user