From 91ff844a863a374a00e1604348943f1815e7e4e0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 23 Nov 2005 08:07:04 +0100 Subject: feed categories --- functions.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'functions.js') diff --git a/functions.js b/functions.js index c4d79e517..c7f1b8a64 100644 --- a/functions.js +++ b/functions.js @@ -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; + +} + + -- cgit v1.2.3