[freeside-commits] freeside/httemplate/misc order_pkg.html, 1.20, 1.21
Ivan,,,
ivan at wavetail.420.am
Sun Apr 10 18:24:43 PDT 2011
Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail.420.am:/tmp/cvs-serv28995/misc
Modified Files:
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.20
retrieving revision 1.21
diff -u -w -d -r1.20 -r1.21
--- order_pkg.html 28 Mar 2011 02:00:52 -0000 1.20
+++ order_pkg.html 11 Apr 2011 01:24:41 -0000 1.21
@@ -94,6 +94,7 @@
<INPUT TYPE = "hidden"
NAME = "locationnum"
+ ID = "locationnum"
VALUE = "<% scalar($cgi->param('lock_locationnum')) |h %>"
>
@@ -136,7 +137,7 @@
<BR>
% my $onclick = $cgi->param('lock_locationnum')
% ? 'document.OrderPkgForm.submit()'
-% : 'standardize_locations()';
+% : 'standardize_new_location()';
<INPUT NAME="submitButton"
TYPE="button"
VALUE="Order Package"
@@ -144,6 +145,21 @@
<% $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>
</HTML>
More information about the freeside-commits
mailing list