summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2017-05-15 10:15:09 -0700
committerIvan Kohler <ivan@freeside.biz>2017-05-15 10:15:09 -0700
commit4da979f579e6ba1f3a502270ebb4b8e48526747e (patch)
tree1839975d6cfc7bf231688c72a2b9f128a5ca954c
parentba375fd5f0c6af9d2880a4db1396ffb182754413 (diff)
fix address stickiness on errors, RT#76000
-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 abaaa5b42..af25df362 100644
--- a/httemplate/elements/tr-select-cust_location.html
+++ b/httemplate/elements/tr-select-cust_location.html
@@ -224,9 +224,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;