1bfe1d7b31
* less convoluted exception dialogs * use window.onerror for the majority of exception catching/reporting * remove most of now useless try/catch blocks * report stacktrace instead of manually specified error locations
23 lines
349 B
JavaScript
23 lines
349 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) {
|
|
var row = $(elem_id);
|
|
|
|
if (row) {
|
|
selectTableRow(row, do_select);
|
|
}
|
|
|
|
var check = $(check_id);
|
|
|
|
if (check) {
|
|
check.checked = do_select;
|
|
}
|
|
}
|
|
|