Job page should work
[platal.git] / templates / profile / adresses.tpl
index 5439dc0..f87b691 100644 (file)
@@ -112,7 +112,7 @@ function validGeoloc(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]"] = "1";
+  document.forms.prof_annu[pref + "[parsevalid]"].value = "1";
   document.forms.prof_annu[pref + "[text]"].value = document.forms.prof_annu[pref + "[geoloc]"].value;
   attachEvent(document.forms.prof_annu[pref + "[text]"], "click",
               function() { document.forms.prof_annu[pref + "[text]"].blur(); });
@@ -124,7 +124,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]"] = "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 = '';