[freeside-commits] freeside/httemplate/edit cust_main.cgi, 1.56,
1.57
Ivan,,,
ivan at wavetail.420.am
Sat Sep 10 07:50:59 PDT 2005
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail:/tmp/cvs-serv31587/httemplate/edit
Modified Files:
cust_main.cgi
Log Message:
ajax-style xmlhttprequest state/county/country selector!
Index: cust_main.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/cust_main.cgi,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- cust_main.cgi 8 Sep 2005 08:50:29 -0000 1.56
+++ cust_main.cgi 10 Sep 2005 14:50:57 -0000 1.57
@@ -173,11 +173,17 @@
<% for (qw( last first company address1 address2 city zip daytime night fax )) { %>
what.form.ship_<%=$_%>.value = what.form.<%=$_%>.value;
<% } %>
+
what.form.ship_country.selectedIndex = what.form.country.selectedIndex;
- ship_country_changed(what.form.ship_country);
- what.form.ship_state.selectedIndex = what.form.state.selectedIndex;
- ship_state_changed(what.form.ship_state);
- what.form.ship_county.selectedIndex = what.form.county.selectedIndex;
+ function fix_ship_state() {
+ what.form.ship_state.selectedIndex = what.form.state.selectedIndex;
+ }
+ ship_country_changed(what.form.ship_country, fix_ship_state );
+
+ function fix_ship_county() {
+ what.form.ship_county.selectedIndex = what.form.county.selectedIndex;
+ }
+ ship_state_changed(what.form.ship_state, fix_ship_county );
}
}
function samechanged(what) {
More information about the freeside-commits
mailing list