2010-11-12 11:52:53 +01:00
|
|
|
function selectTableRow(r, do_select) {
|
|
|
|
|
|
|
|
if (do_select) {
|
2010-11-14 13:55:51 +01:00
|
|
|
r.addClassName("Selected");
|
|
|
|
} else {
|
|
|
|
r.removeClassName("Selected");
|
2010-11-12 11:52:53 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function selectTableRowById(elem_id, check_id, do_select) {
|
2017-03-04 12:34:44 +01:00
|
|
|
var row = $(elem_id);
|
2010-11-12 11:52:53 +01:00
|
|
|
|
2017-03-04 12:34:44 +01:00
|
|
|
if (row) {
|
|
|
|
selectTableRow(row, do_select);
|
|
|
|
}
|
2010-11-12 11:52:53 +01:00
|
|
|
|
2017-03-04 12:34:44 +01:00
|
|
|
var check = $(check_id);
|
2010-11-12 11:52:53 +01:00
|
|
|
|
2017-03-04 12:34:44 +01:00
|
|
|
if (check) {
|
|
|
|
check.checked = do_select;
|
2010-11-12 11:52:53 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|