2010-11-12 10:52:53 +00:00
|
|
|
function selectTableRow(r, do_select) {
|
|
|
|
|
|
|
|
if (do_select) {
|
2010-11-14 12:55:51 +00:00
|
|
|
r.addClassName("Selected");
|
|
|
|
} else {
|
|
|
|
r.removeClassName("Selected");
|
2010-11-12 10:52:53 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|