]> git.wh0rd.org Git - tt-rss.git/blob - js/deprecated.js
require version information in all additional themes
[tt-rss.git] / js / deprecated.js
1 function selectTableRow(r, do_select) {
2         
3         if (do_select) {
4                 r.addClassName("Selected");
5         } else {
6                 r.removeClassName("Selected");
7         }
8 }
9
10 function selectTableRowById(elem_id, check_id, do_select) {
11
12         try {
13
14                 var row = $(elem_id);
15
16                 if (row) {
17                         selectTableRow(row, do_select);
18                 }               
19
20                 var check = $(check_id);
21
22                 if (check) {
23                         check.checked = do_select;
24                 }
25         } catch (e) {
26                 exception_error("selectTableRowById", e);
27         }
28 }
29