[freeside-commits] branch master updated. 8eb629a5a142756a3fd3b4419f36182457263a9c

Christopher Burger burgerc at freeside.biz
Fri May 10 07:43:12 PDT 2019


The branch, master has been updated
       via  8eb629a5a142756a3fd3b4419f36182457263a9c (commit)
      from  3f2a7b01b59902faed5767d81e2959e131bdbdfd (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 8eb629a5a142756a3fd3b4419f36182457263a9c
Author: Christopher Burger <burgerc at freeside.biz>
Date:   Fri May 10 10:42:33 2019 -0400

    RT# 82949 - fixed error where form submits on cancel

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"> </TD>
     <TD VALIGN="top">

-----------------------------------------------------------------------

Summary of changes:
 httemplate/edit/bulk-part_pkg.html | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)




More information about the freeside-commits mailing list