[freeside-commits] freeside/httemplate/elements did_order_item.html, 1.3, 1.4
Erik Levinson
levinse at wavetail.420.am
Fri Apr 22 16:17:41 PDT 2011
Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail.420.am:/tmp/cvs-serv5919/httemplate/elements
Modified Files:
did_order_item.html
Log Message:
bulk DID orders/inventory improvements, RT11291
Index: did_order_item.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/did_order_item.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -w -d -r1.3 -r1.4
--- did_order_item.html 15 Apr 2011 03:04:13 -0000 1.3
+++ did_order_item.html 22 Apr 2011 23:17:39 -0000 1.4
@@ -14,6 +14,7 @@
SIZE = "3"
VALUE = "<% scalar($cgi->param($name."_quantity"))
|| $value |h %>"
+ <% $onchange %>
>
<BR><FONT SIZE="-1">Quantity</FONT>
</TD>
@@ -26,6 +27,7 @@
SIZE = "3"
VALUE = "<% scalar($cgi->param($name."_npa"))
|| $value |h %>"
+ <% $onchange %>
>
<BR><FONT SIZE="-1">NPA</FONT>
</TD>
@@ -109,6 +111,15 @@
my $curr_value = $opt{'curr_value'} || $opt{'value'};
+my $onchange = '';
+if ( $opt{'onchange'} ) {
+ $onchange = $opt{'onchange'};
+ $onchange .= '(this)' unless $onchange =~ /\(\w*\);?$/;
+ $onchange =~ s/\(what\);/\(this\);/g; #ugh, terrible hack. all onchange
+ #callbacks should act the same
+ $onchange = 'onChange="'. $onchange. '"';
+}
+
my $item;
if ( $curr_value ) {
$item = qsearchs('did_order_item', { 'orderitemnum' => $curr_value } );
More information about the freeside-commits
mailing list