[freeside-commits] freeside/httemplate/elements city.html,1.3,1.4

Ivan,,, ivan at wavetail.420.am
Fri Aug 13 16:53:02 PDT 2010


Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail.420.am:/tmp/cvs-serv11634

Modified Files:
	city.html 
Log Message:
fix city blanking on county change, RT#9627

Index: city.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/city.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -w -d -r1.3 -r1.4
--- city.html	28 Dec 2009 19:18:19 -0000	1.3
+++ city.html	13 Aug 2010 23:53:00 -0000	1.4
@@ -64,11 +64,10 @@
         <%$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



More information about the freeside-commits mailing list