projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
finish up useful agent stuff on the config editor: adding, deleting overrides too...
[freeside.git]
/
httemplate
/
browse
/
agent.cgi
diff --git
a/httemplate/browse/agent.cgi
b/httemplate/browse/agent.cgi
index
0a516ed
..
36bac78
100755
(executable)
--- a/
httemplate/browse/agent.cgi
+++ b/
httemplate/browse/agent.cgi
@@
-366,7
+366,7
@@
Unused
? ' for '. $override->taxclass. ' only'
: ''
%>
? ' for '. $override->taxclass. ' only'
: ''
%>
- <FONT SIZE=-1><A HREF="
<%$p%>misc/delete-agent_payment_gateway.cgi?<% $override->agentgatewaynum %>
">(delete)</A></FONT>
+ <FONT SIZE=-1><A HREF="
javascript:areyousure('delete this payment gateway override', '<%$p%>misc/delete-agent_payment_gateway.cgi?<% $override->agentgatewaynum %>')
">(delete)</A></FONT>
</TD>
</TR>
% }
</TD>
</TR>
% }
@@
-386,7
+386,7
@@
Unused
<TR>
<TD>
<TR>
<TD>
- <% $override->name %> <FONT SIZE=-1><A HREF="
<%$p%>config/config-delete.cgi?<% $override->confnum %>
">(delete)</A></FONT>
+ <% $override->name %> <FONT SIZE=-1><A HREF="
javascript:areyousure('delete this configuration override', '<%$p%>config/config-delete.cgi?<% $override->confnum %>')
">(delete)</A></FONT>
</TD>
</TR>
% }
</TD>
</TR>
% }
@@
-402,6
+402,14
@@
Unused
</TABLE>
</TABLE>
+
+<SCRIPT TYPE="text/javascript">
+ function areyousure(what, href) {
+ if ( confirm("Are you sure you want to " + what + "?") == true )
+ window.location.href = href;
+ }
+</SCRIPT>
+
</BODY>
</HTML>
<%init>
</BODY>
</HTML>
<%init>