From: Andrew Dolgov Date: Fri, 25 Nov 2005 15:48:24 +0000 (+0100) Subject: selectTableRowsByIdPrefix now checks required checkboxes X-Git-Tag: schema_feature_freeze_for_1.1~88 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=3055bc41043257ac9006b404d20f76049376e196;p=tt-rss.git selectTableRowsByIdPrefix now checks required checkboxes --- diff --git a/backend.php b/backend.php index e0616483..3a07a0f2 100644 --- a/backend.php +++ b/backend.php @@ -1192,9 +1192,9 @@ print " Select: All, + 'FEEDR-', 'FRCHK-', true)\">All, None + 'FEEDR-', 'FRCHK-', false)\">None "; print " @@ -1429,9 +1429,9 @@ print " Select: All, + 'FCATR-', 'FCCHK-', true)\">All, None + 'FCATR-', 'FCCHK-', false)\">None "; print " @@ -1636,9 +1636,9 @@ print " Select: All, + 'FILRR-', 'FICHK-', true)\">All, None + 'FILRR-', 'FICHK-', false)\">None "; print " @@ -1895,9 +1895,9 @@ print " Select: All, + 'LILRR-', 'LICHK-', true)\">All, None + 'LILRR-', 'LICHK-', false)\">None "; print " @@ -2505,9 +2505,9 @@ print " Select: All, + 'UMRR-', 'UMCHK-', true)\">All, None + 'UMRR-', 'UMCHK-', false)\">None "; print " diff --git a/functions.js b/functions.js index 83246bfd..d236c4e1 100644 --- a/functions.js +++ b/functions.js @@ -461,7 +461,7 @@ function selectTableRow(r, do_select) { } } -function selectTableRowsByIdPrefix(content_id, prefix, do_select) { +function selectTableRowsByIdPrefix(content_id, prefix, check_prefix, do_select) { var content = document.getElementById(content_id); @@ -474,6 +474,13 @@ function selectTableRowsByIdPrefix(content_id, prefix, do_select) { if (content.rows[i].id.match(prefix)) { selectTableRow(content.rows[i], do_select); } + + var row_id = content.rows[i].id.replace(prefix, ""); + var check = document.getElementById(check_prefix + row_id); + + if (check) { + check.checked = do_select; + } } }