block no-articles-selected prompt for catchupPage
This commit is contained in:
parent
9e21a5713f
commit
2228d0e4a8
|
@ -286,7 +286,7 @@ function toggleUnread(id, cmode) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function selectionToggleUnread(cdm_mode, set_state, callback_func) {
|
function selectionToggleUnread(cdm_mode, set_state, callback_func, no_error) {
|
||||||
try {
|
try {
|
||||||
if (!xmlhttp_ready(xmlhttp_rpc)) {
|
if (!xmlhttp_ready(xmlhttp_rpc)) {
|
||||||
printLockingError();
|
printLockingError();
|
||||||
|
@ -301,7 +301,7 @@ function selectionToggleUnread(cdm_mode, set_state, callback_func) {
|
||||||
rows = getSelectedTableRowIds("headlinesList", "RROW", "RCHK");
|
rows = getSelectedTableRowIds("headlinesList", "RROW", "RCHK");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rows.length == 0) {
|
if (rows.length == 0 && !no_error) {
|
||||||
alert(__("No articles are selected."));
|
alert(__("No articles are selected."));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -458,11 +458,11 @@ function catchupPage() {
|
||||||
|
|
||||||
if (document.getElementById("headlinesList")) {
|
if (document.getElementById("headlinesList")) {
|
||||||
selectTableRowsByIdPrefix('headlinesList', 'RROW-', 'RCHK-', true, 'Unread', true);
|
selectTableRowsByIdPrefix('headlinesList', 'RROW-', 'RCHK-', true, 'Unread', true);
|
||||||
selectionToggleUnread(false, false, 'viewCurrentFeed()');
|
selectionToggleUnread(false, false, 'viewCurrentFeed()', true);
|
||||||
selectTableRowsByIdPrefix('headlinesList', 'RROW-', 'RCHK-', false);
|
selectTableRowsByIdPrefix('headlinesList', 'RROW-', 'RCHK-', false);
|
||||||
} else {
|
} else {
|
||||||
cdmSelectArticles('all');
|
cdmSelectArticles('all');
|
||||||
selectionToggleUnread(true, false, 'viewCurrentFeed()')
|
selectionToggleUnread(true, false, 'viewCurrentFeed()', true)
|
||||||
cdmSelectArticles('none');
|
cdmSelectArticles('none');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue