1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-20 01:21:28 +00:00

feed categories

This commit is contained in:
Andrew Dolgov
2005-11-23 08:07:04 +01:00
parent 10dc37acce
commit 91ff844a86
7 changed files with 442 additions and 75 deletions

View File

@@ -415,3 +415,27 @@ function fatalError(code) {
window.location = "error.php?c=" + param_escape(code);
}
function getSelectedTableRowIds(content_id, prefix) {
var content = document.getElementById(content_id);
if (!content) {
alert("[getSelectedTableRowIds] Element " + content_id + " not found.");
return;
}
var sel_rows = new Array();
for (i = 0; i < content.rows.length; i++) {
if (content.rows[i].className.match("Selected")) {
var row_id = content.rows[i].id.replace(prefix + "-", "");
sel_rows.push(row_id);
}
}
return sel_rows;
}