[freeside-commits] freeside/httemplate/elements select-taxoverride.html, 1.1, 1.2 select-taxproduct.html, 1.5, 1.6

Jeff Finucane,420,, jeff at wavetail.420.am
Thu Aug 28 14:32:28 PDT 2008


Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail.420.am:/tmp/cvs-serv22114/httemplate/elements

Modified Files:
	select-taxoverride.html select-taxproduct.html 
Log Message:
taxproduct selection for one time charges

Index: select-taxoverride.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/select-taxoverride.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- select-taxoverride.html	28 Aug 2008 07:38:35 -0000	1.1
+++ select-taxoverride.html	28 Aug 2008 21:32:23 -0000	1.2
@@ -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 @@
 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>

Index: select-taxproduct.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/select-taxproduct.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- select-taxproduct.html	28 Aug 2008 07:38:37 -0000	1.5
+++ select-taxproduct.html	28 Aug 2008 21:32:25 -0000	1.6
@@ -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 @@
       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;";
+
 </%init>



More information about the freeside-commits mailing list