From af66b8714a5d0f0c633dced59a45475e691b3c09 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Thu, 18 Oct 2007 10:42:15 +0200 Subject: [PATCH] Fix issues with geoloc Signed-off-by: Florent Bruneau --- htdocs/javascript/profile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/javascript/profile.js b/htdocs/javascript/profile.js index bbffc58..d93cb4d 100644 --- a/htdocs/javascript/profile.js +++ b/htdocs/javascript/profile.js @@ -187,6 +187,7 @@ function validGeoloc(id, pref) document.getElementById(id + '_geoloc_valid').style.display = 'none'; document.forms.prof_annu[pref + "[parsevalid]"].value = "1"; document.forms.prof_annu[pref + "[text]"].value = document.forms.prof_annu[pref + "[geoloc]"].value; + document.forms.prof_annu[pref + "[cityid]"].value = document.forms.prof_annu[pref + "[geoloc_cityid]"].value; attachEvent(document.forms.prof_annu[pref + "[text]"], "click", function() { document.forms.prof_annu[pref + "[text]"].blur(); }); document.forms.prof_annu[pref + "[text]"].className = ''; @@ -197,7 +198,7 @@ function validAddress(id, pref) document.getElementById(id + '_geoloc').style.display = 'none'; document.getElementById(id + '_geoloc_error').style.display = 'none'; document.getElementById(id + '_geoloc_valid').style.display = 'none'; - document.forms.prof_annu[pref + "[parsevalid]"].value = "0"; + document.forms.prof_annu[pref + "[parsevalid]"].value = "1"; attachEvent(document.forms.prof_annu[pref + "[text]"], "click", function() { document.forms.prof_annu[pref + "[text]"].blur(); }); document.forms.prof_annu[pref + "[text]"].className = ''; -- 2.1.4