[refs #200] Fix chbx behaviour for repos and their platforms

This commit is contained in:
konstantin.grabar 2012-03-21 19:04:01 +04:00
parent e6622d29ea
commit 5abf64e353
1 changed files with 14 additions and 0 deletions

View File

@ -31,4 +31,18 @@ $(document).ready(function() {
});
});
$('#build_list_pl_id').trigger('change');
$('.offset25 label').click(function() {
setPlChecked($(this).prev()[0], !$(this).prev().attr('checked'));
});
$('.offset25 input[type="checkbox"]').click(function() {
setPlChecked(this, $(this).attr('checked'));
});
});
function setPlChecked(pointer, checked) {
pl_cbx = $(pointer).parent().parent().parent().find('input[type="checkbox"].build_bpl_ids');
if (checked && !$(pointer).attr('disabled')) {
pl_cbx.attr('checked', 'checked');
}
}