From 8240403713de07e6b9c1d8a645838791e80823b7 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Sat, 6 Jul 2013 17:30:47 -0700 Subject: delayed package start option, #20686 --- httemplate/elements/tr-select-cust-part_pkg.html | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'httemplate/elements/tr-select-cust-part_pkg.html') diff --git a/httemplate/elements/tr-select-cust-part_pkg.html b/httemplate/elements/tr-select-cust-part_pkg.html index 848ab0a4b..b9dc5a75a 100644 --- a/httemplate/elements/tr-select-cust-part_pkg.html +++ b/httemplate/elements/tr-select-cust-part_pkg.html @@ -7,10 +7,11 @@ -- cgit v1.2.1 From 8297a6375be5e9f0fed712745d15ef0b4907da00 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Sat, 6 Jul 2013 17:30:55 -0700 Subject: minor UI fix --- httemplate/elements/tr-select-cust-part_pkg.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'httemplate/elements/tr-select-cust-part_pkg.html') diff --git a/httemplate/elements/tr-select-cust-part_pkg.html b/httemplate/elements/tr-select-cust-part_pkg.html index b9dc5a75a..c9c50d27e 100644 --- a/httemplate/elements/tr-select-cust-part_pkg.html +++ b/httemplate/elements/tr-select-cust-part_pkg.html @@ -11,7 +11,7 @@ var optionName = new Option(text, value, false, false); optionName.setAttribute('data-can_discount', can_discount); optionName.setAttribute('data-can_start_date', can_start_date); - optionName.setAttribute('data-start_date', start_date); + optionName.setAttribute('data-start_date', start_date || ''); var length = what.length; what.options[length] = optionName; } -- cgit v1.2.1 From 2c62268f304f1ec6e8baf89043eb1bd1197bb9a6 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Mon, 15 Jul 2013 18:37:26 -0700 Subject: future package change, #20687 --- httemplate/elements/tr-select-cust-part_pkg.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'httemplate/elements/tr-select-cust-part_pkg.html') 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'} %>; +% } } -- cgit v1.2.1