[freeside-commits] freeside/httemplate/misc order_pkg.html, 1.18, 1.18.2.1
Ivan,,,
ivan at wavetail.420.am
Sun Apr 10 18:24:54 PDT 2011
Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail.420.am:/tmp/cvs-serv29037/misc
Modified Files:
Tag: FREESIDE_2_1_BRANCH
order_pkg.html
Log Message:
fix misfire of USPS address correction on non-new locations, RT#12183
Index: order_pkg.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/order_pkg.html,v
retrieving revision 1.18
retrieving revision 1.18.2.1
diff -u -w -d -r1.18 -r1.18.2.1
--- order_pkg.html 12 Oct 2010 01:15:17 -0000 1.18
+++ order_pkg.html 11 Apr 2011 01:24:50 -0000 1.18.2.1
@@ -107,7 +107,22 @@
%>
<BR>
-<INPUT NAME="submitButton" TYPE="button" VALUE="Order Package" onClick = "this.disabled=true; standardize_locations();" <% $pkgpart ? '' : 'DISABLED' %>>
+<INPUT NAME="submitButton" TYPE="button" VALUE="Order Package" onClick = "this.disabled=true; standardize_new_location();" <% $pkgpart ? '' : 'DISABLED' %>>
+
+<SCRIPT TYPE="text/javascript">
+
+ function standardize_new_location() {
+ var form = document.OrderPkgForm;
+ var loc = form.locationnum;
+ if (loc.type = 'select-one' && loc.options[loc.selectedIndex].value == -1) {
+ standardize_locations();
+ } else {
+ form.submit();
+ }
+ }
+
+</SCRIPT>
+
</FORM>
</BODY>
More information about the freeside-commits
mailing list