summaryrefslogtreecommitdiff
path: root/httemplate/misc
diff options
context:
space:
mode:
authorivan <ivan>2011-04-11 16:05:19 +0000
committerivan <ivan>2011-04-11 16:05:19 +0000
commit5d64e4978919b582128d0caa0fcf95badf6f73e9 (patch)
tree619ef53776c53bc82a85afdd16f50c2b91ebade8 /httemplate/misc
parentfd4feaff20f3abb8f96f3927ba893bc376497f10 (diff)
move javascript for great justice
Diffstat (limited to 'httemplate/misc')
-rw-r--r--httemplate/misc/order_pkg.html25
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>