// fixed selection of warehouses

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11618 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
bMancone
2011-12-22 15:23:08 +00:00
parent 2dc8cf5974
commit 96df495dd6
@@ -87,7 +87,7 @@
<td colspan="3">&nbsp;</td>
</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>
</tr>
</table>
@@ -98,12 +98,11 @@
<script type="text/javascript">
$(function() {
$('#check_all_suppliers').click(function() {
$('.check_all_warehouse').click(function() {
var check = $(this);
//get all checkboxes of current warehouse
var checkboxes = $('input[name*="'+check.val()+'"]');
for (i=0; i<checkboxes.length; i++)
{
var item = $(checkboxes[i]);