diff options
author | Andrew Dolgov <[email protected]> | 2005-11-23 08:07:04 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-11-23 08:07:04 +0100 |
commit | 91ff844a863a374a00e1604348943f1815e7e4e0 (patch) | |
tree | 454a70fb61b1c19bcc593bb14fd5c1f48a245acc /functions.js | |
parent | 10dc37acce64a972a623cfbe6f800d8dbc567742 (diff) |
feed categories
Diffstat (limited to 'functions.js')
-rw-r--r-- | functions.js | 24 |
1 files changed, 24 insertions, 0 deletions
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; + +} + + |