diff options
author | Ivan Kohler <ivan@freeside.biz> | 2017-05-15 10:15:09 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2017-05-15 10:15:09 -0700 |
commit | 4da979f579e6ba1f3a502270ebb4b8e48526747e (patch) | |
tree | 1839975d6cfc7bf231688c72a2b9f128a5ca954c | |
parent | ba375fd5f0c6af9d2880a4db1396ffb182754413 (diff) |
fix address stickiness on errors, RT#76000
-rw-r--r-- | httemplate/elements/tr-select-cust_location.html | 10 |
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; |