// AdminSupplierOrdersController : when quantity_received_today is checked, the checkbox is now checked; the state of the order is now updated when receiving the first part of it
This commit is contained in:
@@ -84,7 +84,7 @@
|
||||
{$tr.$key}
|
||||
{* If type is 'editable', an input is created *}
|
||||
{elseif isset($params.type) && $params.type == 'editable' && isset($tr.id)}
|
||||
<input type="text" class="{$key}" name="{$key}_{$tr.id}" value="{$tr.$key}">
|
||||
<input type="text" name="{$key}_{$tr.id}" value="{$tr.$key}" class="{$key}" />
|
||||
{elseif isset($params.callback)}
|
||||
{$tr.$key}
|
||||
{elseif isset($tr.$key) && $key == 'color'}
|
||||
|
||||
@@ -23,13 +23,15 @@
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<div>
|
||||
<h2>{l s='Supplier Order'} #{$supplier_order_reference}</h2>
|
||||
</div>
|
||||
|
||||
<div style="margin-top: 20px;">
|
||||
<fieldset>
|
||||
<legend>{l s='Order'} #{$supplier_order_reference}</legend>
|
||||
{$content}
|
||||
</fieldset>
|
||||
</div>
|
||||
<script language="javascript">
|
||||
$(function() {
|
||||
$('input.quantity_received_today').live('click', function() {
|
||||
/* checks checkbox when the input is clicked */
|
||||
$(this).parents('tr:eq(0)').find('input[type=checkbox]').attr('checked', true);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<fieldset>
|
||||
<legend>{l s='Order'} #{$supplier_order_reference}</legend>
|
||||
{$content}
|
||||
</fieldset>
|
||||
|
||||
Reference in New Issue
Block a user