mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-22 12:01:29 +00:00
selectTableRowsByIdPrefix now checks required checkboxes
This commit is contained in:
20
backend.php
20
backend.php
@@ -1192,9 +1192,9 @@
|
|||||||
print "<tr><td class=\"selectPrompt\" colspan=\"8\">
|
print "<tr><td class=\"selectPrompt\" colspan=\"8\">
|
||||||
Select:
|
Select:
|
||||||
<a href=\"javascript:selectTableRowsByIdPrefix('prefFeedList',
|
<a href=\"javascript:selectTableRowsByIdPrefix('prefFeedList',
|
||||||
'FEEDR-', true)\">All</a>,
|
'FEEDR-', 'FRCHK-', true)\">All</a>,
|
||||||
<a href=\"javascript:selectTableRowsByIdPrefix('prefFeedList',
|
<a href=\"javascript:selectTableRowsByIdPrefix('prefFeedList',
|
||||||
'FEEDR-', false)\">None</a>
|
'FEEDR-', 'FRCHK-', false)\">None</a>
|
||||||
</td</tr>";
|
</td</tr>";
|
||||||
|
|
||||||
print "<tr class=\"title\">
|
print "<tr class=\"title\">
|
||||||
@@ -1429,9 +1429,9 @@
|
|||||||
print "<tr><td class=\"selectPrompt\" colspan=\"8\">
|
print "<tr><td class=\"selectPrompt\" colspan=\"8\">
|
||||||
Select:
|
Select:
|
||||||
<a href=\"javascript:selectTableRowsByIdPrefix('prefFeedCatList',
|
<a href=\"javascript:selectTableRowsByIdPrefix('prefFeedCatList',
|
||||||
'FCATR-', true)\">All</a>,
|
'FCATR-', 'FCCHK-', true)\">All</a>,
|
||||||
<a href=\"javascript:selectTableRowsByIdPrefix('prefFeedCatList',
|
<a href=\"javascript:selectTableRowsByIdPrefix('prefFeedCatList',
|
||||||
'FCATR-', false)\">None</a>
|
'FCATR-', 'FCCHK-', false)\">None</a>
|
||||||
</td</tr>";
|
</td</tr>";
|
||||||
|
|
||||||
print "<tr class=\"title\">
|
print "<tr class=\"title\">
|
||||||
@@ -1636,9 +1636,9 @@
|
|||||||
print "<tr><td class=\"selectPrompt\" colspan=\"8\">
|
print "<tr><td class=\"selectPrompt\" colspan=\"8\">
|
||||||
Select:
|
Select:
|
||||||
<a href=\"javascript:selectTableRowsByIdPrefix('prefFilterList',
|
<a href=\"javascript:selectTableRowsByIdPrefix('prefFilterList',
|
||||||
'FILRR-', true)\">All</a>,
|
'FILRR-', 'FICHK-', true)\">All</a>,
|
||||||
<a href=\"javascript:selectTableRowsByIdPrefix('prefFilterList',
|
<a href=\"javascript:selectTableRowsByIdPrefix('prefFilterList',
|
||||||
'FILRR-', false)\">None</a>
|
'FILRR-', 'FICHK-', false)\">None</a>
|
||||||
</td</tr>";
|
</td</tr>";
|
||||||
|
|
||||||
print "<tr class=\"title\">
|
print "<tr class=\"title\">
|
||||||
@@ -1895,9 +1895,9 @@
|
|||||||
print "<tr><td class=\"selectPrompt\" colspan=\"8\">
|
print "<tr><td class=\"selectPrompt\" colspan=\"8\">
|
||||||
Select:
|
Select:
|
||||||
<a href=\"javascript:selectTableRowsByIdPrefix('prefLabelList',
|
<a href=\"javascript:selectTableRowsByIdPrefix('prefLabelList',
|
||||||
'LILRR-', true)\">All</a>,
|
'LILRR-', 'LICHK-', true)\">All</a>,
|
||||||
<a href=\"javascript:selectTableRowsByIdPrefix('prefLabelList',
|
<a href=\"javascript:selectTableRowsByIdPrefix('prefLabelList',
|
||||||
'LILRR-', false)\">None</a>
|
'LILRR-', 'LICHK-', false)\">None</a>
|
||||||
</td</tr>";
|
</td</tr>";
|
||||||
|
|
||||||
print "<tr class=\"title\">
|
print "<tr class=\"title\">
|
||||||
@@ -2505,9 +2505,9 @@
|
|||||||
print "<tr><td class=\"selectPrompt\" colspan=\"8\">
|
print "<tr><td class=\"selectPrompt\" colspan=\"8\">
|
||||||
Select:
|
Select:
|
||||||
<a href=\"javascript:selectTableRowsByIdPrefix('prefUserList',
|
<a href=\"javascript:selectTableRowsByIdPrefix('prefUserList',
|
||||||
'UMRR-', true)\">All</a>,
|
'UMRR-', 'UMCHK-', true)\">All</a>,
|
||||||
<a href=\"javascript:selectTableRowsByIdPrefix('prefUserList',
|
<a href=\"javascript:selectTableRowsByIdPrefix('prefUserList',
|
||||||
'UMRR-', false)\">None</a>
|
'UMRR-', 'UMCHK-', false)\">None</a>
|
||||||
</td</tr>";
|
</td</tr>";
|
||||||
|
|
||||||
print "<tr class=\"title\">
|
print "<tr class=\"title\">
|
||||||
|
|||||||
@@ -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);
|
var content = document.getElementById(content_id);
|
||||||
|
|
||||||
@@ -474,6 +474,13 @@ function selectTableRowsByIdPrefix(content_id, prefix, do_select) {
|
|||||||
if (content.rows[i].id.match(prefix)) {
|
if (content.rows[i].id.match(prefix)) {
|
||||||
selectTableRow(content.rows[i], do_select);
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user