diff options
author | Ivan Kohler <ivan@freeside.biz> | 2017-05-17 09:47:32 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2017-05-17 09:47:32 -0700 |
commit | a8d055471f77f59883f921d9eeda056a2e7ad279 (patch) | |
tree | 2f11e21340c6be94c7ec940155218333e1c9f773 | |
parent | a8d4f4f83cb4382bc301ba7ed21b6a72aac1f1f7 (diff) |
fix prospect state dropdown, RT#76043, fallout from #76000
-rw-r--r-- | httemplate/elements/tr-select-cust_location.html | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/httemplate/elements/tr-select-cust_location.html b/httemplate/elements/tr-select-cust_location.html index 36ee7b6e5..5ff320b06 100644 --- a/httemplate/elements/tr-select-cust_location.html +++ b/httemplate/elements/tr-select-cust_location.html @@ -204,11 +204,20 @@ Example: 'enable_censustract' => 1, &> -% unless ( $prospect_main ) { - <SCRIPT TYPE="text/javascript"> +<SCRIPT TYPE="text/javascript"> +% if ( $prospect_main ) { # && ! $opt{is_optional} ) { + + changeSelect(document.getElementById('country'), <% $cust_location->country || $countrydefault |js_string %>); + + country_changed( document.getElementById('country'), + fix_state_factory( <% $cust_location->state || $statedefault |js_string %>, + '' + ) + ); +% } else { locationnum_changed(document.getElementById('locationnum')); - </SCRIPT> % } +</SCRIPT> <%init> |