// fixed selection of warehouses
This commit is contained in:
@@ -87,7 +87,7 @@
|
|||||||
<td colspan="3"> </td>
|
<td colspan="3"> </td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><input type="checkbox" id="check_all_suppliers" value="check_warehouse_{$warehouse['id_warehouse']}" /></td>
|
<td><input type="checkbox" class="check_all_warehouse" value="check_warehouse_{$warehouse['id_warehouse']}" /></td>
|
||||||
<td colspan="2"><i>{l s='Mark all products as stored in this warehouse.'}</i></td>
|
<td colspan="2"><i>{l s='Mark all products as stored in this warehouse.'}</i></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@@ -98,12 +98,11 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function() {
|
$(function() {
|
||||||
$('#check_all_suppliers').click(function() {
|
$('.check_all_warehouse').click(function() {
|
||||||
var check = $(this);
|
var check = $(this);
|
||||||
|
|
||||||
//get all checkboxes of current warehouse
|
//get all checkboxes of current warehouse
|
||||||
var checkboxes = $('input[name*="'+check.val()+'"]');
|
var checkboxes = $('input[name*="'+check.val()+'"]');
|
||||||
|
|
||||||
for (i=0; i<checkboxes.length; i++)
|
for (i=0; i<checkboxes.length; i++)
|
||||||
{
|
{
|
||||||
var item = $(checkboxes[i]);
|
var item = $(checkboxes[i]);
|
||||||
|
|||||||
Reference in New Issue
Block a user