From: ivan Date: Mon, 11 Apr 2011 16:05:17 +0000 (+0000) Subject: move javascript for great justice X-Git-Tag: freeside_2_3_0~414 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=8133d1b51eb321a9bac095984d1faf69fcfa024a move javascript for great justice --- 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(); + } + } + <% include('/elements/error.html') %> @@ -145,21 +155,6 @@ <% $pkgpart ? '' : 'DISABLED' %> > - - -