summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2017-05-17 09:47:32 -0700
committerChristopher Burger <burgerc@freeside.biz>2019-04-15 13:05:46 -0400
commit1ab8e94c2cceed20d27e27441ebce543cf6565a6 (patch)
tree75b00391635c652ae68ccc8d039d686e09d072aa
parentf9a032ba3e9bc7eee997b529f6f51eae0d33b4c3 (diff)
fix prospect state dropdown, RT#76043, fallout from #76000
-rw-r--r--httemplate/elements/tr-select-cust_location.html15
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 af25df362..028c8b92e 100644
--- a/httemplate/elements/tr-select-cust_location.html
+++ b/httemplate/elements/tr-select-cust_location.html
@@ -225,11 +225,20 @@ Example:
)
%>
-% 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>