From: Thomas Tanghus Date: Tue, 3 Apr 2012 06:13:10 +0000 (+0200) Subject: Contacts: l11n for geo autocomplete. Not sure if it works though. X-Git-Tag: v4.0.0beta~381^2~15 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dd4e577f6db422aed3d528d12a8e77de9c3cfaef;p=nextcloud-server.git Contacts: l11n for geo autocomplete. Not sure if it works though. --- 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 }, diff --git a/apps/contacts/templates/index.php b/apps/contacts/templates/index.php index af159ce9c60..d68dd68f605 100644 --- a/apps/contacts/templates/index.php +++ b/apps/contacts/templates/index.php @@ -1,6 +1,7 @@