From: Andrew Dolgov Date: Thu, 27 May 2010 12:10:35 +0000 (+0400) Subject: fix various actions failing when tried on an empty (e.g. no articles) headlines buffer X-Git-Tag: 1.4.2~3 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=335565ac7ded005c3b21095fb4a17ff036717398;p=tt-rss.git fix various actions failing when tried on an empty (e.g. no articles) headlines buffer --- diff --git a/functions.js b/functions.js index ff35961e..7901c00f 100644 --- a/functions.js +++ b/functions.js @@ -867,7 +867,7 @@ function selectTableRowsByIdPrefix(content_id, prefix, check_prefix, do_select, var content = $(content_id); if (!content) { - alert("[selectTableRows] Element " + content_id + " not found."); + debug("[selectTableRows] Element " + content_id + " not found."); return; } @@ -915,8 +915,8 @@ function getSelectedTableRowIds(content_id, prefix) { var content = $(content_id); if (!content) { - alert("[getSelectedTableRowIds] Element " + content_id + " not found."); - return; + debug("[getSelectedTableRowIds] Element " + content_id + " not found."); + return new Array(); } var sel_rows = new Array();