updating city and county when new zip is entetered even if the fields already have...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 25 Apr 2007 18:11:54 +0000 (18:11 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 25 Apr 2007 18:11:54 +0000 (18:11 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@7165 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/xul/staff_client/server/patron/ue_config.js

index 688852c..6b6449a 100644 (file)
@@ -760,18 +760,12 @@ function uEditBuildAddrFields(patron, address) {
                                                        var state = $n(f.widget.base, 'ue_addr_state');
                                                        var county = $n(f.widget.base, 'ue_addr_county');
                                                        var city = $n(f.widget.base, 'ue_addr_city');
-                                                       if(!state.value) {
-                                                               state.value = info.state;
-                                                               state.onchange();
-                                                       }
-                                                       if(!county.value) {
-                                                               county.value = info.county;
-                                                               county.onchange();
-                                                       }
-                                                       if(!city.value) {
-                                                               city.value = info.city;
-                                                               city.onchange();
-                                                       }
+                                                       state.value = info.state;
+                                                       state.onchange();
+                                                       county.value = info.county;
+                                                       county.onchange();
+                                                       city.value = info.city;
+                                                       city.onchange();
                                                }
                                        );
                                        req.send();