$.ajax({
url: 'controller.pl?action=Order/multi_items_update_result',
data: data,
- success: function(data){ $('#multi_items_result').html(data) }
+ success: function(data){
+ $('#multi_items_result').html(data);
+ }
});
}
[%- USE T8 %][%- USE HTML %][%- USE L %][%- USE LxERP %]
<table width="100%">
+ <tr>
+ <td>[% 'for all' | $T8 %]
+ <td>[% L.input_tag("multi_items.all_qty", '', size => 5) %]</td>
+ </tr>
+ <tr>
+ <td colspan="5"><hr></td>
+ </tr>
[%- FOREACH item = multi_items %]
<tr>
+ <td></td>
<td>
[% L.hidden_tag("add_multi_items[+].parts_id", item.id) %]
- [% L.input_tag("add_multi_items[].qty", '', size => 5) %]
+ [% L.input_tag("add_multi_items[].qty", '', size => 5, class='multi_items_qty') %]
</td>
<td>[% HTML.escape(item.unit) %]</td>
<td>[% HTML.escape(item.partnumber) %]</td>
</tr>
[%- END %]
</table>
+
+<script type='text/javascript'>
+ $('#multi_items_all_qty').change(function(event){
+ $('.multi_items_qty').val($(event.target).val());
+ });
+</script>