summaryrefslogtreecommitdiff
path: root/httemplate/browse
diff options
context:
space:
mode:
authorjeff <jeff>2008-08-28 07:38:40 +0000
committerjeff <jeff>2008-08-28 07:38:40 +0000
commit669bd6b315633c99ac61441198c2c4e45401c36b (patch)
treeaf72b9ad7bf116b147700f63f5b2895b0c9c9e5b /httemplate/browse
parent2c37cd91ea7951b70ea5d420e989128d78ce0a80 (diff)
multiple usage classes checkpoint
Diffstat (limited to 'httemplate/browse')
-rwxr-xr-xhttemplate/browse/part_pkg_taxproduct.cgi12
1 files changed, 11 insertions, 1 deletions
diff --git a/httemplate/browse/part_pkg_taxproduct.cgi b/httemplate/browse/part_pkg_taxproduct.cgi
index 3df819715..0cea4f838 100755
--- a/httemplate/browse/part_pkg_taxproduct.cgi
+++ b/httemplate/browse/part_pkg_taxproduct.cgi
@@ -54,6 +54,13 @@ my $tax_customer = $1
my $id = $1
if ( $cgi->param('id') =~ /^([ \w]+)$/ );
+my $remove_onclick = <<EOS
+ parent.document.getElementById('$id').value = '';
+ parent.document.getElementById('${id}_description').value = '';
+ parent.cClick();
+EOS
+ if $id;
+
my $select_onclick = sub {
my $row = shift;
my $taxnum = $row->taxproductnum;
@@ -132,7 +139,10 @@ my @fields = (
my $html_init = '';
-$html_init = '<TABLE><TR><TD>Current tax product: </TD><TD>'.
+my $select_link = [ 'javascript:void(0);', sub { ''; } ];
+$html_init = '<TABLE><TR><TD><A HREF="javascript:void(0)" '.
+ qq!onClick="$remove_onclick">(remove)</A>&nbsp;!.
+ 'Current tax product: </TD><TD>'.
$selected_part_pkg_taxproduct->description.
'</TD></TR></TABLE><BR><BR>'
if $selected_part_pkg_taxproduct;