summaryrefslogtreecommitdiff
path: root/httemplate/elements
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2013-07-15 18:25:13 -0700
committerMark Wells <mark@freeside.biz>2013-07-15 18:25:13 -0700
commitebcfdd04f1fe69028836d231238845801aa69505 (patch)
tree8c2bbc29c554709d3e0576d3626630f58ca89d82 /httemplate/elements
parent8e84773c2e9107185f0a0cf629cf357d7b8979f5 (diff)
future package change, #20687
Diffstat (limited to 'httemplate/elements')
-rw-r--r--httemplate/elements/tr-select-cust-part_pkg.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/httemplate/elements/tr-select-cust-part_pkg.html b/httemplate/elements/tr-select-cust-part_pkg.html
index c9c50d27e..488f04a13 100644
--- a/httemplate/elements/tr-select-cust-part_pkg.html
+++ b/httemplate/elements/tr-select-cust-part_pkg.html
@@ -20,7 +20,7 @@
what.form.pkgpart.disabled = 'disabled'; //disable part_pkg dropdown
var submitButton = what.form.submitButton; // || what.form.submit;
- if ( submitButton ) {
+ if ( submitButton && <% $opt{'curr_value'} ? 0 : 1 %> ) {
submitButton.disabled = true; //disable the submit button
}
var discountnum = what.form.discountnum;
@@ -51,6 +51,9 @@
}
what.form.pkgpart.disabled = ''; //re-enable part_pkg dropdown
+% if ( $opt{'curr_value'} ) {
+ what.form.pkgpart.value = <% $opt{'curr_value'} %>;
+% }
}