summaryrefslogtreecommitdiff
path: root/httemplate/elements
diff options
context:
space:
mode:
authorlevinse <levinse>2011-04-22 23:17:39 +0000
committerlevinse <levinse>2011-04-22 23:17:39 +0000
commitdad39ad50ddc5cbb549a0207262d94a4886d5fec (patch)
treecca5a44660eb621140d192174ba7ff9457a2da32 /httemplate/elements
parent9d354e2a0b212a3459d93f3698f26e200577f289 (diff)
bulk DID orders/inventory improvements, RT11291
Diffstat (limited to 'httemplate/elements')
-rw-r--r--httemplate/elements/did_order_item.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/httemplate/elements/did_order_item.html b/httemplate/elements/did_order_item.html
index 00668f94f..b582683b7 100644
--- a/httemplate/elements/did_order_item.html
+++ b/httemplate/elements/did_order_item.html
@@ -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 $id = $opt{'id'} || 'orderitemnum';
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 } );