From 5d64e4978919b582128d0caa0fcf95badf6f73e9 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 11 Apr 2011 16:05:19 +0000 Subject: [PATCH] move javascript for great justice --- httemplate/misc/order_pkg.html | 25 ++++++++++--------------- 1 file 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(); + } + } + <% include('/elements/error.html') %> @@ -109,21 +119,6 @@
> - - - -- 2.11.0