fix address stickiness on errors, RT#76000
authorIvan Kohler <ivan@freeside.biz>
Mon, 15 May 2017 17:15:06 +0000 (10:15 -0700)
committerIvan Kohler <ivan@freeside.biz>
Mon, 15 May 2017 17:15:06 +0000 (10:15 -0700)
httemplate/elements/tr-select-cust_location.html

index 47a917d..34ed78d 100644 (file)
@@ -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;