projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
c854876
)
finish up useful agent stuff on the config editor: adding, deleting overrides too...
author
ivan
<ivan>
Sat, 2 May 2009 00:01:30 +0000
(
00:01
+0000)
committer
ivan
<ivan>
Sat, 2 May 2009 00:01:30 +0000
(
00:01
+0000)
httemplate/browse/agent.cgi
patch
|
blob
|
history
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>