Index: lams_tool_laqa/web/authoring/AdvancedContent.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_laqa/web/authoring/AdvancedContent.jsp,v diff -u -r1.31 -r1.32 --- lams_tool_laqa/web/authoring/AdvancedContent.jsp 28 Feb 2011 12:21:58 -0000 1.31 +++ lams_tool_laqa/web/authoring/AdvancedContent.jsp 8 Jan 2014 17:50:56 -0000 1.32 @@ -25,22 +25,48 @@ * Processes mouse click event on showOtherAnswers ckeckbox */ function doShowOtherAnswers() { - document.QaAuthoringForm.usernameVisible.disabled = ! eval(document.QaAuthoringForm.usernameVisible.disabled); - document.QaAuthoringForm.allowRateAnswers.disabled = ! eval(document.QaAuthoringForm.allowRateAnswers.disabled); + document.QaAuthoringForm.usernameVisible.disabled = ! eval(document.QaAuthoringForm.showOtherAnswers.checked); + document.QaAuthoringForm.allowRateAnswers.disabled = ! eval(document.QaAuthoringForm.showOtherAnswers.checked); if (document.QaAuthoringForm.showOtherAnswers.checked) { document.QaAuthoringForm.usernameVisible.checked = true; } else { document.QaAuthoringForm.usernameVisible.checked = false; document.QaAuthoringForm.allowRateAnswers.checked = false; } - } + } + + function clickSelectLeaderToolOuputHandler() { + if (document.QaAuthoringForm.useSelectLeaderToolOuput.checked) { + //uncheck checkboxes + document.QaAuthoringForm.showOtherAnswers.checked = false; + document.QaAuthoringForm.usernameVisible.checked = false; + document.QaAuthoringForm.allowRateAnswers.checked = false; + //disable checkboxes + document.QaAuthoringForm.showOtherAnswers.disabled = true; + document.QaAuthoringForm.usernameVisible.disabled = true; + document.QaAuthoringForm.allowRateAnswers.disabled = true; + } else { + //enable checkboxes + document.QaAuthoringForm.showOtherAnswers.disabled = false; + } + } + +

+ + + +

+

+ styleClass="noBorder" disabled="${formBean.useSelectLeaderToolOuput}">

- - - - - - -