mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-14 22:45:57 +00:00
Select unread should clear previous selection (closes #19)
This commit is contained in:
@@ -1273,9 +1273,9 @@
|
|||||||
print "<td class=\"headlineActions\">
|
print "<td class=\"headlineActions\">
|
||||||
Select:
|
Select:
|
||||||
<a href=\"javascript:selectTableRowsByIdPrefix('headlinesList',
|
<a href=\"javascript:selectTableRowsByIdPrefix('headlinesList',
|
||||||
'RROW-', 'RCHK-', true)\">All</a>,
|
'RROW-', 'RCHK-', true, '', true)\">All</a>,
|
||||||
<a href=\"javascript:selectTableRowsByIdPrefix('headlinesList',
|
<a href=\"javascript:selectTableRowsByIdPrefix('headlinesList',
|
||||||
'RROW-', 'RCHK-', true, 'Unread')\">Unread</a>,
|
'RROW-', 'RCHK-', true, 'Unread', true)\">Unread</a>,
|
||||||
<a href=\"javascript:selectTableRowsByIdPrefix('headlinesList',
|
<a href=\"javascript:selectTableRowsByIdPrefix('headlinesList',
|
||||||
'RROW-', 'RCHK-', false)\">None</a>
|
'RROW-', 'RCHK-', false)\">None</a>
|
||||||
|
|
||||||
|
|||||||
16
functions.js
16
functions.js
@@ -557,7 +557,7 @@ function selectTableRowById(elem_id, check_id, do_select) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function selectTableRowsByIdPrefix(content_id, prefix, check_prefix, do_select,
|
function selectTableRowsByIdPrefix(content_id, prefix, check_prefix, do_select,
|
||||||
classcheck) {
|
classcheck, reset_others) {
|
||||||
|
|
||||||
var content = document.getElementById(content_id);
|
var content = document.getElementById(content_id);
|
||||||
|
|
||||||
@@ -571,14 +571,18 @@ function selectTableRowsByIdPrefix(content_id, prefix, check_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 row_id = content.rows[i].id.replace(prefix, "");
|
||||||
var check = document.getElementById(check_prefix + row_id);
|
var check = document.getElementById(check_prefix + row_id);
|
||||||
|
|
||||||
if (check) {
|
if (check) {
|
||||||
check.checked = do_select;
|
check.checked = do_select;
|
||||||
|
}
|
||||||
|
} else if (reset_others) {
|
||||||
|
selectTableRow(content.rows[i], false);
|
||||||
}
|
}
|
||||||
|
} else if (reset_others) {
|
||||||
|
selectTableRow(content.rows[i], false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user