diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2013-09-25 15:57:13 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2013-09-25 15:57:13 -0700 |
| commit | f2766e203e1aa144d046a26cf13e01e1f5b00f64 (patch) | |
| tree | 2b891130d2f2a56f387a90ba45f17a2e4bf5aedb /httemplate/elements | |
| parent | d046cb57be3c1a74362d15e90486239cc8a5f4d7 (diff) | |
| parent | 0d81877c6ae8ea9732065f5400ff37a7458587ed (diff) | |
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'httemplate/elements')
| -rw-r--r-- | httemplate/elements/tr-select-cust-part_pkg.html | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/httemplate/elements/tr-select-cust-part_pkg.html b/httemplate/elements/tr-select-cust-part_pkg.html index 8431beb4e..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) { @@ -70,6 +68,7 @@ </SCRIPT> +% if ( scalar(@pkg_class) > 1 && ! $conf->exists('disable-cust-pkg_class') ) { <TR> <TH ALIGN="right"><% mt('Package Class') |h %></TH> <TD COLSPAN=7> @@ -81,7 +80,9 @@ </TD> </TR> -%} +% } else { # so that the rest of the page works correctly + <INPUT TYPE="hidden" ID="classnum" NAME="classnum" VALUE="-1`"> +% } <TR> <TH ALIGN="right"><% mt('Package') |h %></TH> |
