fix city blanking on county change, RT#9627
authorivan <ivan>
Fri, 13 Aug 2010 23:55:56 +0000 (23:55 +0000)
committerivan <ivan>
Fri, 13 Aug 2010 23:55:56 +0000 (23:55 +0000)
httemplate/elements/city.html

index 0e1bf8d..956d353 100644 (file)
@@ -66,9 +66,9 @@ Example:
         what.form.<% $pre %>city_select.style.display = '';
       } else if ( what.form.<% $pre %>city.style.display == 'none' ) {
         // turn on the text city, turn off the select
         what.form.<% $pre %>city_select.style.display = '';
       } else if ( what.form.<% $pre %>city.style.display == 'none' ) {
         // turn on the text city, turn off the select
+        what.form.<%$ pre %>city.value = saved_<%$pre%>city;
         what.form.<% $pre %>city.style.display = '';
         what.form.<% $pre %>city_select.style.display = 'none';
         what.form.<% $pre %>city.style.display = '';
         what.form.<% $pre %>city_select.style.display = 'none';
-        what.form.<%$ pre %>city.value = saved_<%$pre%>city;
       }
 
       //run the callback
       }
 
       //run the callback