Index: lams_tool_laqa/web/authoring/newQuestionBox.jsp =================================================================== diff -u -re48fc0e1f6819e257b87efa36c3baec3c1c488f0 -r320934945c495ab0832be6fb547d83812ac3152a --- lams_tool_laqa/web/authoring/newQuestionBox.jsp (.../newQuestionBox.jsp) (revision e48fc0e1f6819e257b87efa36c3baec3c1c488f0) +++ lams_tool_laqa/web/authoring/newQuestionBox.jsp (.../newQuestionBox.jsp) (revision 320934945c495ab0832be6fb547d83812ac3152a) @@ -1,237 +1,57 @@ - - - <%@ include file="/common/taglibs.jsp"%> - - - <%@ include file="/common/header.jsp"%> - <%@ include file="/includes/jsp/qaWizardCommon.jsp"%> - - - - - - - - // Creating a 3-dimentional javascript array for category/cognitive skill/question - // ------------------------------------------------------------------------------- - var categoryArray = new Array(); - var categoryIndex = 0; - var skillIndex = 0; - var qIndex = 0; - - categoryIndex = categoryArray.length; - addCategory(unescape("${category.title}"), "${category.uid}", categoryArray.length); - - skillIndex = categoryArray[categoryIndex].skills.length; - addSkill(unescape("${skill.title}"), "${skill.uid}", categoryIndex , skillIndex); - - qIndex = categoryArray[categoryIndex].skills[skillIndex].questions.length; - addQuestion(unescape("${question.question}"), "${question.uid}", categoryIndex, skillIndex, qIndex) - - - - // ------------------------------------------------------------------------------- - - // the menus - var catMenu = null; - var skillMenu = null; - var qMenu = null; - - // Sets up the triple menu with the appropriate data - function setUpTripleMenu() { - var qaWizardEnabledBox = document.QaAuthoringForm.qaWizardEnabled; +
+
+
+
- catMenu = document.QaAuthoringForm.catMenu; - skillMenu = document.QaAuthoringForm.skillMenu; - qMenu = document.QaAuthoringForm.qMenu; - - nullOptions(catMenu); - nullOptions(skillMenu); - nullOptions(qMenu); - - var i; - with (catMenu) { - options[0] = new Option("", "none"); - for(i = 0; i < categoryArray.length; i++) - { - options[i+1] = new Option(categoryArray[i].title, i); - } - options[0].selected = true; - } - } +
+ + + + + + + + + + - var heightOffSet = 0; - $(document).ready(function() { - $("a#gwizard").click(function() { - $("div.wizard").toggle(); - - if (heightOffSet == 0) - { - heightOffSet = document.getElementById('wizardDiv').offsetHeight; - } - - try { - if (window.parent && window.parent.resizeIframe) { - window.parent.resizeIframe(heightOffSet); - } else if (window.top && window.top.resizeIframe) { - window.top.resizeIframe(heightOffSet); - } - } catch(err) { - // mute cross-domain iframe access errors - } - - heightOffSet = heightOffSet * -1; - }); - }); - - // Inserts the question template into the new question fckeditor area - function useQuestionTemplate(aMenu) { - if (aMenu.selectedIndex > 0) { - var obj = document.getElementById("newQuestion"); - obj.value += aMenu.options[aMenu.selectedIndex].text; - var oEditor = CKEDITOR.instances["newQuestion"]; - oEditor.insertHtml(aMenu.options[aMenu.selectedIndex].text); - } - } - - - - function setUpTripleMenu() {} - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - -
- -
- - -
- -
- -
- - - - - - - - - -
- - +
+ +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+
+
+
\ No newline at end of file