X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fselect-taxproduct.html;h=0f6ef55833c22c0ddad11649f67d273083364dd3;hb=b431ece7b4a71aa5771f44393da582692f668817;hp=37a428960b656c898d33eaa0d11d0babec4887f7;hpb=669bd6b315633c99ac61441198c2c4e45401c36b;p=freeside.git diff --git a/httemplate/elements/select-taxproduct.html b/httemplate/elements/select-taxproduct.html index 37a428960..0f6ef5583 100644 --- a/httemplate/elements/select-taxproduct.html +++ b/httemplate/elements/select-taxproduct.html @@ -8,7 +8,7 @@ TYPE = "text" VALUE = "<% $description %>" SIZE = "12" - onclick = "overlib( OLiframeContent('<% $p %>/browse/part_pkg_taxproduct.cgi?_type=select&id=<% $name %>&taxproductnum='+document.getElementById('<% $name %>').value, 1000, 400, 'tax_product_popup'), CAPTION, 'Select product', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK); return false;"><% $opt{'postfix'} %> + onClick = "<% $onclick %>"><% $opt{'postfix'} %> <%init> my %opt = @_; @@ -23,4 +23,6 @@ unless ( $description || ! $value ) { if $part_pkg_taxproduct; } +my $onclick = $opt{onclick} || "overlib( OLiframeContent('${p}/browse/part_pkg_taxproduct.cgi?_type=select&id=${name}&taxproductnum='+document.getElementById('${name}').value, 1000, 400, 'tax_product_popup'), CAPTION, 'Select product', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK); return false;"; +