diff options
-rw-r--r-- | httemplate/misc/order_pkg.html | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/httemplate/misc/order_pkg.html b/httemplate/misc/order_pkg.html index 92ec095b7..6bcd5e5a6 100644 --- a/httemplate/misc/order_pkg.html +++ b/httemplate/misc/order_pkg.html @@ -21,6 +21,16 @@ } } + 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> <% include('/elements/error.html') %> @@ -109,21 +119,6 @@ <BR> <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> </HTML> |