summaryrefslogtreecommitdiffstats
path: root/apps/contacts/js
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-04-03 08:13:10 +0200
committerThomas Tanghus <thomas@tanghus.net>2012-04-03 08:13:10 +0200
commitdd4e577f6db422aed3d528d12a8e77de9c3cfaef (patch)
treef5384ea9e4f6c434cf2a16977efaf25bff87c553 /apps/contacts/js
parentfc555b48ec0f5600a7f9ae25354ffaca2e0533de (diff)
downloadnextcloud-server-dd4e577f6db422aed3d528d12a8e77de9c3cfaef.tar.gz
nextcloud-server-dd4e577f6db422aed3d528d12a8e77de9c3cfaef.zip
Contacts: l11n for geo autocomplete. Not sure if it works though.
Diffstat (limited to 'apps/contacts/js')
-rw-r--r--apps/contacts/js/contacts.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/contacts/js/contacts.js b/apps/contacts/js/contacts.js
index b72f3c9a678..cc4da5837e0 100644
--- a/apps/contacts/js/contacts.js
+++ b/apps/contacts/js/contacts.js
@@ -919,6 +919,7 @@ Contacts={
featureClass: "P",
style: "full",
maxRows: 12,
+ lang: lang,
name_startsWith: request.term
},
success: function( data ) {
@@ -937,7 +938,7 @@ Contacts={
},
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 ?
@@ -961,6 +962,7 @@ Contacts={
featureCode: "PCLI",
/*countryBias: "true",*/
/*style: "full",*/
+ lang: lang,
maxRows: 12,
name_startsWith: request.term
},