projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a8d4f4f
)
fix prospect state dropdown, RT#76043, fallout from #76000
author
Ivan Kohler
<ivan@freeside.biz>
Wed, 17 May 2017 16:47:32 +0000
(09:47 -0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Wed, 17 May 2017 16:47:32 +0000
(09:47 -0700)
httemplate/elements/tr-select-cust_location.html
patch
|
blob
|
history
diff --git
a/httemplate/elements/tr-select-cust_location.html
b/httemplate/elements/tr-select-cust_location.html
index
36ee7b6
..
5ff320b
100644
(file)
--- a/
httemplate/elements/tr-select-cust_location.html
+++ b/
httemplate/elements/tr-select-cust_location.html
@@
-204,11
+204,20
@@
Example:
'enable_censustract' => 1,
&>
'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'));
locationnum_changed(document.getElementById('locationnum'));
- </SCRIPT>
% }
% }
+</SCRIPT>
<%init>
<%init>