diff options
Diffstat (limited to 'functions.js')
-rw-r--r-- | functions.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/functions.js b/functions.js index d901cbb90..b72c1157b 100644 --- a/functions.js +++ b/functions.js @@ -537,6 +537,21 @@ function getSelectedTableRowIds(content_id, prefix) { } +function toggleSelectRowById(sender, id) { + var row = document.getElementById(id); + + if (sender.checked) { + if (!row.className.match("Selected")) { + row.className = row.className + "Selected"; + } + } else { + if (row.className.match("Selected")) { + row.className = row.className.replace("Selected", ""); + } + } +} + + function toggleSelectRow(sender) { var parent_row = sender.parentNode.parentNode; |