1
0
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:
Andrew Dolgov
2017-03-04 14:34:44 +03:00
parent e6d66fe55c
commit 1bfe1d7b31
10 changed files with 3791 additions and 4593 deletions

View File

@@ -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;
}
}