mirror of
https://github.com/YunoHost-Apps/ttrss_ynh.git
synced 2024-10-01 13:34:46 +02:00
29 lines
430 B
JavaScript
29 lines
430 B
JavaScript
function selectTableRow(r, do_select) {
|
|
|
|
if (do_select) {
|
|
r.addClassName("Selected");
|
|
} else {
|
|
r.removeClassName("Selected");
|
|
}
|
|
}
|
|
|
|
function selectTableRowById(elem_id, check_id, do_select) {
|
|
|
|
try {
|
|
|
|
var row = $(elem_id);
|
|
|
|
if (row) {
|
|
selectTableRow(row, do_select);
|
|
}
|
|
|
|
var check = $(check_id);
|
|
|
|
if (check) {
|
|
check.checked = do_select;
|
|
}
|
|
} catch (e) {
|
|
exception_error("selectTableRowById", e);
|
|
}
|
|
}
|
|
|