fix various actions failing when tried on an empty (e.g. no articles) headlines buffer
This commit is contained in:
parent
a1af157410
commit
335565ac7d
|
@ -867,7 +867,7 @@ function selectTableRowsByIdPrefix(content_id, prefix, check_prefix, do_select,
|
||||||
var content = $(content_id);
|
var content = $(content_id);
|
||||||
|
|
||||||
if (!content) {
|
if (!content) {
|
||||||
alert("[selectTableRows] Element " + content_id + " not found.");
|
debug("[selectTableRows] Element " + content_id + " not found.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -915,8 +915,8 @@ function getSelectedTableRowIds(content_id, prefix) {
|
||||||
var content = $(content_id);
|
var content = $(content_id);
|
||||||
|
|
||||||
if (!content) {
|
if (!content) {
|
||||||
alert("[getSelectedTableRowIds] Element " + content_id + " not found.");
|
debug("[getSelectedTableRowIds] Element " + content_id + " not found.");
|
||||||
return;
|
return new Array();
|
||||||
}
|
}
|
||||||
|
|
||||||
var sel_rows = new Array();
|
var sel_rows = new Array();
|
||||||
|
|
Loading…
Reference in New Issue