summaryrefslogtreecommitdiff
path: root/httemplate/elements/select-taxoverride.html
diff options
context:
space:
mode:
authorjeff <jeff>2008-08-28 21:32:26 +0000
committerjeff <jeff>2008-08-28 21:32:26 +0000
commit42132c9a86d36d7fefa7ba5f058f764ba6e7ad5b (patch)
treecc02b304e583dd1a10d09f300cc15c56e5863a65 /httemplate/elements/select-taxoverride.html
parentf0d52fc82b138598228c401d99b56e88366c6945 (diff)
taxproduct selection for one time charges
Diffstat (limited to 'httemplate/elements/select-taxoverride.html')
-rw-r--r--httemplate/elements/select-taxoverride.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/httemplate/elements/select-taxoverride.html b/httemplate/elements/select-taxoverride.html
index f3bfb5fd7..8b1c528eb 100644
--- a/httemplate/elements/select-taxoverride.html
+++ b/httemplate/elements/select-taxoverride.html
@@ -3,7 +3,7 @@
TYPE = "hidden"
VALUE = "<% $value %>"
>
- <A href="javascript:void(0)" onclick="overlib( OLiframeContent('part_pkg_taxoverride.html?element_name=<% $name %>;selected='+document.getElementById('<% $name %>').value, 1100, 600, 'tax_product_popup'), CAPTION, 'Edit <% $class %> product tax overrides', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK); return false;">
+ <A href="javascript:void(0)" onclick="<% $onclick %>">
<% $value ? "Edit $class tax overrides" : "Override $class taxes" %>
</A>
<%init>
@@ -23,4 +23,6 @@ $name =~ /^tax_override_(\w+)$/ && ( $usage = $1 );
my $class = lc($usage_class{$usage} || "Usage class $usage")
if $usage;
+my $onclick = $opt{onclick} || "overlib( OLiframeContent('part_pkg_taxoverride.html?element_name=$name;selected='+document.getElementById('$name').value, 1100, 600, 'tax_product_popup'), CAPTION, 'Edit $class product tax overrides', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK); return false;";
+
</%init>