function selectionToggleUnread(set_state, callback_func, no_error) {
try {
- var rows;
-
- if (isCdmMode()) {
- rows = cdmGetSelectedArticles();
- } else {
- rows = getSelectedTableRowIds("headlinesList", "RROW", "RCHK");
- }
+ var rows = getSelectedArticleIds2();
if (rows.length == 0 && !no_error) {
alert(__("No articles are selected."));
function selectionToggleMarked() {
try {
- var rows;
+ var rows = getSelectedArticleIds2();
- if (isCdmMode()) {
- rows = cdmGetSelectedArticles();
- } else {
- rows = getSelectedTableRowIds("headlinesList", "RROW", "RCHK");
- }
-
if (rows.length == 0) {
alert(__("No articles are selected."));
return;
function selectionTogglePublished() {
try {
- var rows;
-
- if (isCdmMode()) {
- rows = cdmGetSelectedArticles();
- } else {
- rows = getSelectedTableRowIds("headlinesList", "RROW", "RCHK");
- }
+ var rows = getSelectedArticleIds2();
if (rows.length == 0) {
alert(__("No articles are selected."));
function deleteSelection() {
try {
-
- var rows;
-
- if ($("headlinesList")) {
- rows = getSelectedTableRowIds("headlinesList", "RROW", "RCHK");
- } else {
- rows = cdmGetSelectedArticles();
- }
+ var rows = getSelectedArticleIds2();
+
if (rows.length == 0) {
alert(__("No articles are selected."));
return;
}
-
var fn = getFeedName(getActiveFeedId(), activeFeedIsCat());
var str;
var op;
try {
- var rows;
-
- if ($("headlinesList")) {
- rows = getSelectedTableRowIds("headlinesList", "RROW", "RCHK");
- } else {
- rows = cdmGetSelectedArticles();
- }
-
+ var rows = getSelectedArticleIds2();
+
if (rows.length == 0) {
alert(__("No articles are selected."));
return;
}
-
var fn = getFeedName(getActiveFeedId(), activeFeedIsCat());
var str;
var op;
try {
- var rows;
-
- if ($("headlinesList")) {
- rows = getSelectedTableRowIds("headlinesList", "RROW", "RCHK");
- } else {
- rows = cdmGetSelectedArticles();
- }
-
+ var rows = getSelectedArticleIds2();
+
if (rows.length == 0) {
alert(__("No articles are selected."));
return;
}
-
var fn = getFeedName(getActiveFeedId(), activeFeedIsCat());
var str = __("Mark %d selected articles in %s as read?");