]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix various actions failing when tried on an empty (e.g. no articles) headlines buffer
authorAndrew Dolgov <fox@bah.org.ru>
Thu, 27 May 2010 12:10:35 +0000 (16:10 +0400)
committerAndrew Dolgov <fox@bah.org.ru>
Thu, 27 May 2010 12:10:35 +0000 (16:10 +0400)
functions.js

index ff35961e86e76cef96b158dec850170d81af5260..7901c00f32ccdc256f2359b381e0aee592ea22a1 100644 (file)
@@ -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();