summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorivan <ivan>2010-08-13 23:53:00 +0000
committerivan <ivan>2010-08-13 23:53:00 +0000
commit22773e1b0288fc296c30ba99e2d37a8f4193a462 (patch)
treee18c793cb56c6814a0382db4bc9f5628ba644c4f /httemplate
parente79d507abfc9edacbc24e19753493974c9f1661a (diff)
fix city blanking on county change, RT#9627
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/elements/city.html5
1 files changed, 2 insertions, 3 deletions
diff --git a/httemplate/elements/city.html b/httemplate/elements/city.html
index 61d057889..d774cce59 100644
--- a/httemplate/elements/city.html
+++ b/httemplate/elements/city.html
@@ -64,11 +64,10 @@ Example:
<%$pre%>city_select_changed(what.form.<% $pre %>city_select);
what.form.<% $pre %>city.style.display = 'none';
what.form.<% $pre %>city_select.style.display = '';
- } else {
- // turn on the text city, turn off the select
- what.form.<%$ pre %>city.value = saved_<%$pre%>city;
+ } else if ( what.form.<% $pre %>city.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