summaryrefslogtreecommitdiff
path: root/httemplate/edit
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2019-05-10 10:42:33 -0400
committerChristopher Burger <burgerc@freeside.biz>2019-05-10 10:42:33 -0400
commit8eb629a5a142756a3fd3b4419f36182457263a9c (patch)
treece1ac80662d71302cbc7051e4ecd3279c5f6e4cc /httemplate/edit
parent3f2a7b01b59902faed5767d81e2959e131bdbdfd (diff)
RT# 82949 - fixed error where form submits on cancel
Diffstat (limited to 'httemplate/edit')
-rw-r--r--httemplate/edit/bulk-part_pkg.html9
1 files changed, 2 insertions, 7 deletions
diff --git a/httemplate/edit/bulk-part_pkg.html b/httemplate/edit/bulk-part_pkg.html
index 8570cb92c..336c5a9b2 100644
--- a/httemplate/edit/bulk-part_pkg.html
+++ b/httemplate/edit/bulk-part_pkg.html
@@ -8,11 +8,6 @@
<& /elements/error.html &>
<SCRIPT>
- function areyousure() {
- var warning = 'Edit these packages?';
- if(confirm(warning)) { process(); }
- }
-
function toggle_section(what) {
var id = what.id;
var isDisabled;
@@ -26,7 +21,7 @@
}
</SCRIPT>
-<FORM ACTION="process/bulk-part_pkg.html" METHOD="POST">
+<FORM ACTION="process/bulk-part_pkg.html" METHOD="POST" onsubmit="return confirm('Edit these packages?');">
<TABLE>
<TR>
<TD VALIGN="top">
@@ -72,7 +67,7 @@ Edit pricing fields.
</TABLE>
</DIV>
<BR>
-<INPUT TYPE="submit" VALUE="Bulk change packages" onclick="areyousure()">
+<INPUT TYPE="submit" VALUE="Bulk change packages">
</TD>
<TD WIDTH="5">&nbsp;</TD>
<TD VALIGN="top">