summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-12-25 14:43:31 +0100
committerAndrew Dolgov <[email protected]>2005-12-25 14:43:31 +0100
commit6c12c80902bbf696f501f028c924605edfc1d122 (patch)
tree6387ff3a9dc9a9cdbca16e932ed17a47cb30c7d8 /functions.js
parent8ddf4cdc72e8f6327837558d1b1c71f216fcbff5 (diff)
fix row selection on editFeed()
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/functions.js b/functions.js
index 60fd9da64..e408fb8d7 100644
--- a/functions.js
+++ b/functions.js
@@ -536,6 +536,26 @@ function selectTableRow(r, do_select) {
}
}
+function selectTableRowById(elem_id, check_id, do_select) {
+
+ try {
+
+ var row = document.getElementById(elem_id);
+
+ if (row) {
+ selectTableRow(row, do_select);
+ }
+
+ var check = document.getElementById(check_id);
+
+ if (check) {
+ check.checked = do_select;
+ }
+ } catch (e) {
+ exception_error("selectTableRowById", e);
+ }
+}
+
function selectTableRowsByIdPrefix(content_id, prefix, check_prefix, do_select,
classcheck) {