[ADD] GENERAL: Method to toggle the highlight for the check box
This commit is contained in:
@@ -803,4 +803,12 @@ function highlightRow(checkbox) {
|
||||
checkbox.closest(".oh-sticky-table__tr").addClass("highlight-selected")
|
||||
}
|
||||
}
|
||||
function toggleHighlight(ids){
|
||||
$.each(ids, function (indexInArray, id) {
|
||||
$(`#${id}`).closest(".oh-sticky-table__tr").removeClass("highlight-selected")
|
||||
if ($(`#${id}`).is(":checked")) {
|
||||
$(`#${id}`).closest(".oh-sticky-table__tr").addClass("highlight-selected")
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user