diff options
author | Ivan Kohler <ivan@freeside.biz> | 2017-05-15 10:15:06 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2017-05-15 10:15:06 -0700 |
commit | 9a6e080912eb49a601b574591321cfc915359dc0 (patch) | |
tree | 892c603bea7934a0cbc213c44a50f05469952c87 | |
parent | cf98bcb1b302d553ef050c2ef1e4fe7b660705b1 (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 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; |