featureClass: "P",
style: "full",
maxRows: 12,
+ lang: lang,
name_startsWith: request.term
},
success: function( data ) {
},
minLength: 2,
select: function( event, ui ) {
- if(ui.item) {
+ if(ui.item && $('#adr_country').val().trim().length == 0) {
$('#adr_country').val(ui.item.country);
}
/*log( ui.item ?
featureCode: "PCLI",
/*countryBias: "true",*/
/*style: "full",*/
+ lang: lang,
maxRows: 12,
name_startsWith: request.term
},
<script type='text/javascript'>
var totalurl = '<?php echo OC_Helper::linkToAbsolute('contacts', 'carddav.php'); ?>/addressbooks';
var categories = <?php sort($_['categories']); echo json_encode($_['categories']); ?>;
+ var lang = '<?php echo OC_Preferences::getValue(OC_User::getUser(), 'core', 'lang', 'en'); ?>';
</script>
<div id="controls">
<form>