You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
451 B
JavaScript
29 lines
451 B
JavaScript
14 years ago
|
function selectTableRow(r, do_select) {
|
||
|
r.className = r.className.replace("Selected", "");
|
||
|
|
||
|
if (do_select) {
|
||
|
r.className = r.className + "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);
|
||
|
}
|
||
|
}
|
||
|
|