summaryrefslogtreecommitdiff
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:48:26 -0400
commita1bc794c10bdbc87341c3f43065d74e9f49016a7 (patch)
treec82d085617846f5b0afe9e4155258af4406e1184
parentec00937efee55b88408726f0293ba195f83df464 (diff)
RT# 82949 - fixed error where form submits on cancel
-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">