X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-select-cust-part_pkg.html;h=696baff9ff3bb04e64447d692b5e033105e1d02a;hb=430b2c784d2ee9ea5be00b821d2dbd27279ef132;hp=488f04a13d7848ca032e2b6ac57ee11c9a9f9f90;hpb=91dbe4c3834f38d428367d9a1e2c6cf9ea9d84a4;p=freeside.git diff --git a/httemplate/elements/tr-select-cust-part_pkg.html b/httemplate/elements/tr-select-cust-part_pkg.html index 488f04a13..696baff9f 100644 --- a/httemplate/elements/tr-select-cust-part_pkg.html +++ b/httemplate/elements/tr-select-cust-part_pkg.html @@ -1,5 +1,3 @@ -%if ( scalar(@pkg_class) > 1 && ! $conf->exists('disable-cust-pkg_class') ) { - <& /elements/xmlhttp.html, 'url' => $p.'misc/cust-part_pkg.cgi', 'subs' => [ 'get_part_pkg' ], @@ -28,7 +26,7 @@ discountnum.disabled = true; //disable discount dropdown } - classnum = what.options[what.selectedIndex].value; + classnum = what.value; function update_part_pkg(part_pkg) { @@ -64,12 +62,13 @@ ); } - window.onload = function() { + <&| /elements/onload.js &> classnum_changed(document.getElementById('classnum')); - } + +% if ( scalar(@pkg_class) > 1 && ! $conf->exists('disable-cust-pkg_class') ) { <% mt('Package Class') |h %> @@ -81,7 +80,9 @@ -%} +% } else { # so that the rest of the page works correctly + +% } <% mt('Package') |h %>