mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 20:45:55 +00:00
simplify error handling
* 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
This commit is contained in:
@@ -8,22 +8,16 @@ function selectTableRow(r, do_select) {
|
||||
}
|
||||
|
||||
function selectTableRowById(elem_id, check_id, do_select) {
|
||||
var row = $(elem_id);
|
||||
|
||||
try {
|
||||
if (row) {
|
||||
selectTableRow(row, do_select);
|
||||
}
|
||||
|
||||
var row = $(elem_id);
|
||||
var check = $(check_id);
|
||||
|
||||
if (row) {
|
||||
selectTableRow(row, do_select);
|
||||
}
|
||||
|
||||
var check = $(check_id);
|
||||
|
||||
if (check) {
|
||||
check.checked = do_select;
|
||||
}
|
||||
} catch (e) {
|
||||
exception_error("selectTableRowById", e);
|
||||
if (check) {
|
||||
check.checked = do_select;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user