Index: samigo-app/src/java/org/sakaiproject/tool/assessment/bundle/QuestionPoolMessages.properties =================================================================== --- samigo-app/src/java/org/sakaiproject/tool/assessment/bundle/QuestionPoolMessages.properties (revision 107458) +++ samigo-app/src/java/org/sakaiproject/tool/assessment/bundle/QuestionPoolMessages.properties (working copy) @@ -18,6 +18,7 @@ my_assessments=Assessments my_templates=Templates assessments=Assessments +select_all=Select all # prompts #add_q=Add A Question Index: samigo-app/src/webapp/jsf/questionpool/questionTreeTable.jsp =================================================================== --- samigo-app/src/webapp/jsf/questionpool/questionTreeTable.jsp (revision 107458) +++ samigo-app/src/webapp/jsf/questionpool/questionTreeTable.jsp (working copy) @@ -138,7 +138,11 @@ - + + + + + Index: samigo-app/src/webapp/js/samigotree.js =================================================================== --- samigo-app/src/webapp/js/samigotree.js (revision 107458) +++ samigo-app/src/webapp/js/samigotree.js (working copy) @@ -541,3 +541,42 @@ } } +/* + Toggle JSF checkboxes that match a controller checkbox +*/ +function toggleCheckboxes(checkbox,checkboxtargetname) { + // Render the transfer button if one or more checkboxes are selected + // Basically this needs to split out the ID from checkbox which will be named + // editform:_id142:chk + // + // And either check or uncheck all boxes named depending on whether or not it (itself) is checked + // editform:_id142:#:* + // Add your controller checkbox with the name: + // + + //debugger; + if (checkboxtargetname) { + params = checkbox.name.split(":") + } + if (params && params.length == 3) { + params.pop() + params.push(checkboxtargetname); + } + else + return; + + for (i = 0;; i++) { + id = params[0] + ":" + params[1] + ":" + i + ":" + params[2]; + elem = null; + if (document.getElementsByName) + elem = document.getElementsByName(id); + if (elem == null || elem.length == 0) { + break; + } else { + if (elem.length == 1) + elem[0].checked = checkbox.checked; + //Not sure if it finds multiple elements with the same name, since this is a special JSF case + //It shouldn't happen + } + } +}