projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "RT#41671 Fix double click prevention for all legacy buttons [renamed all...
[freeside.git]
/
httemplate
/
edit
/
cust_location.cgi
diff --git
a/httemplate/edit/cust_location.cgi
b/httemplate/edit/cust_location.cgi
index
a5e7d20
..
38816db
100755
(executable)
--- a/
httemplate/edit/cust_location.cgi
+++ b/
httemplate/edit/cust_location.cgi
@@
-8,24
+8,30
@@
ACTION="<% $p %>edit/process/cust_location.cgi" METHOD=POST>
<% ntable('#cccccc') %>
<& /elements/location.html,
<% ntable('#cccccc') %>
<& /elements/location.html,
- 'object' => $cust_location,
- 'no_asterisks' => 1,
+ 'object' => $cust_location,
+ 'no_asterisks' => 1,
+ # these are service locations, so they need all this stuff
+ 'enable_coords' => 1,
+ 'enable_district' => 1,
+ 'enable_censustract' => 1,
&>
<& /elements/standardize_locations.html,
'form' => 'EditLocationForm',
'callback' => 'document.EditLocationForm.submit();',
&>
<& /elements/standardize_locations.html,
'form' => 'EditLocationForm',
'callback' => 'document.EditLocationForm.submit();',
+ 'with_census' => 1,
+ 'with_census_functions' => 1,
&>
</TABLE>
<BR>
<SCRIPT TYPE="text/javascript">
function go() {
&>
</TABLE>
<BR>
<SCRIPT TYPE="text/javascript">
function go() {
-% if ( FS::Conf->new->config('address_standardize_method') ) {
- standardize_locations();
-% } else {
confirm('Modify this service location?') &&
confirm('Modify this service location?') &&
- document.EditLocationForm.submit();
-% }
+ standardize_locations();
+}
+
+function submit_abort() {
+ nd(1);
}
</SCRIPT>
<INPUT TYPE="button" NAME="submitButton" VALUE="Submit" onclick="go()">
}
</SCRIPT>
<INPUT TYPE="button" NAME="submitButton" VALUE="Submit" onclick="go()">