summaryrefslogtreecommitdiff
path: root/httemplate/elements
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2017-05-15 10:15:07 -0700
committerIvan Kohler <ivan@freeside.biz>2017-05-15 10:15:07 -0700
commit8f3cc0805952046b0445c1c5e7aab414485d5a00 (patch)
tree54db529120059aedff5f22bf22a2dac0a025a9c3 /httemplate/elements
parentffb56f5a762ac0e820ea93eb0aa8c64d7fa71e5d (diff)
fix address stickiness on errors, RT#76000
Diffstat (limited to 'httemplate/elements')
-rw-r--r--httemplate/elements/tr-select-cust_location.html10
1 files changed, 7 insertions, 3 deletions
diff --git a/httemplate/elements/tr-select-cust_location.html b/httemplate/elements/tr-select-cust_location.html
index 47a917dbd..34ed78dd4 100644
--- a/httemplate/elements/tr-select-cust_location.html
+++ b/httemplate/elements/tr-select-cust_location.html
@@ -205,9 +205,13 @@ Example:
'enable_censustract' => 1,
)
%>
-<SCRIPT TYPE="text/javascript">
- locationnum_changed(document.getElementById('locationnum'));
-</SCRIPT>
+
+% unless ( $prospect_main ) {
+ <SCRIPT TYPE="text/javascript">
+ locationnum_changed(document.getElementById('locationnum'));
+ </SCRIPT>
+% }
+
<%init>
my $conf = new FS::Conf;