Bug 30055: Add missing include to format addresses
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Séverine Queune <severine.queune@bulac.fr> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
eeaac96e4e
commit
27fed377a4
1 changed files with 20 additions and 0 deletions
|
@ -0,0 +1,20 @@
|
|||
<!-- js-patron-format-address.inc -->
|
||||
<script>
|
||||
(function() {
|
||||
|
||||
window.$format_address = function(data, options) {
|
||||
|
||||
let address = '';
|
||||
address += (data.street_number ? data.street_number + ' ' : '' );
|
||||
address += (data.address ? data.address + ' ' : '' );
|
||||
address += (data.address2 ? data.address2 + ' ' : '' );
|
||||
address += (data.city ? data.city + ' ' : '' );
|
||||
address += (data.state ? data.state + ' ' : '' );
|
||||
address += (data.postal_code ? data.postal_code + ' ' : '' );
|
||||
address += (data.country ? data.country + ' ' : '' );
|
||||
return address;
|
||||
}
|
||||
|
||||
})();
|
||||
</script>
|
||||
<!-- / js-patron-format-address.inc -->
|
Loading…
Reference in a new issue