summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2011-04-11 16:05:17 +0000
committerivan <ivan>2011-04-11 16:05:17 +0000
commit8133d1b51eb321a9bac095984d1faf69fcfa024a (patch)
tree571c1b84614d95a5ac93faa0c4ffd71ebac1fa2f
parent25a2e0e25af651f35cd96ed5c27f8e847b84f060 (diff)
move javascript for great justice
-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 18ad74606..233262aac 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') %>
@@ -145,21 +155,6 @@
<% $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>