summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js24
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;
+
+}
+
+