summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;