#13034 fixed checkbox

This commit is contained in:
Daniel Cebrian 2024-03-14 16:49:39 +01:00
parent c9e515e121
commit d221094f61
1 changed files with 0 additions and 16 deletions

View File

@ -670,8 +670,6 @@ if ($modules !== false) {
true,
false
);
} else {
$table->head['checkbox'] = '';
}
$table->head[0] = '<span>'.__('Name').'</span>'.ui_get_sorting_arrows(
@ -812,8 +810,6 @@ if ($modules !== false) {
'',
true
);
} else {
$data['checkbox'] = '';
}
$data[0] = '';
@ -1269,23 +1265,11 @@ html_print_div(
$('#modal').dialog("close");
});
$('[id^=checkbox-id_delete]').change(function(){
if($(this).parent().parent().hasClass('checkselected')){
$(this).parent().parent().removeClass('checkselected');
}
else{
$(this).parent().parent().addClass('checkselected');
}
});
$('[id^=checkbox-all_delete]').change(function(){
if ($("#checkbox-all_delete").prop("checked")) {
$('[id^=checkbox-id_delete]').parent().parent().addClass('checkselected');
$("[name^=id_delete").prop("checked", true);
}
else{
$('[id^=checkbox-id_delete]').parent().parent().removeClass('checkselected');
$("[name^=id_delete").prop("checked", false);
}
});