Index: lams_tool_daco/web/WEB-INF/tlds/lams/lams.tld =================================================================== diff -u -r2ba408421bb2e9ae92dc8f0c98c0aa2312a6842a -r756d63ed6f0fe8da2cbd61b5420f49def38d7590 --- lams_tool_daco/web/WEB-INF/tlds/lams/lams.tld (.../lams.tld) (revision 2ba408421bb2e9ae92dc8f0c98c0aa2312a6842a) +++ lams_tool_daco/web/WEB-INF/tlds/lams/lams.tld (.../lams.tld) (revision 756d63ed6f0fe8da2cbd61b5420f49def38d7590) @@ -416,6 +416,10 @@ /WEB-INF/tags/TabName.tag + TabBodyArea + /WEB-INF/tags/TabBodyArea.tag + + CKEditor /WEB-INF/tags/CKEditor.tag @@ -446,27 +450,15 @@ TSTable /WEB-INF/tags/TSTable.tag - + Arrow /WEB-INF/tags/Arrow.tag - - - HybridTab - /WEB-INF/tags/HybridTab.tag - HybridTabHeader - /WEB-INF/tags/HybridTabHeader.tag - - - HybridTabBody - /WEB-INF/tags/HybridTabBody.tag - - AdvancedAccordian /WEB-INF/tags/AdvancedAccordian.tag - + ImgButtonWrapper /WEB-INF/tags/ImgButtonWrapper.tag @@ -509,5 +501,13 @@ head /WEB-INF/tags/Head.tag + + Comments + /WEB-INF/tags/Comments.tag + + + CommentsAuthor + /WEB-INF/tags/CommentsAuthor.tag + Index: lams_tool_daco/web/common/tabbedheader.jsp =================================================================== diff -u -rbe37ea9b52fd18c106254805e3cc45a6581bdd87 -r756d63ed6f0fe8da2cbd61b5420f49def38d7590 --- lams_tool_daco/web/common/tabbedheader.jsp (.../tabbedheader.jsp) (revision be37ea9b52fd18c106254805e3cc45a6581bdd87) +++ lams_tool_daco/web/common/tabbedheader.jsp (.../tabbedheader.jsp) (revision 756d63ed6f0fe8da2cbd61b5420f49def38d7590) @@ -11,7 +11,6 @@ - Index: lams_tool_daco/web/includes/javascript/dacoAuthoring.js =================================================================== diff -u -r2b350be06485bbfe1da8c66def9fc2cd81e883a8 -r756d63ed6f0fe8da2cbd61b5420f49def38d7590 --- lams_tool_daco/web/includes/javascript/dacoAuthoring.js (.../dacoAuthoring.js) (revision 2b350be06485bbfe1da8c66def9fc2cd81e883a8) +++ lams_tool_daco/web/includes/javascript/dacoAuthoring.js (.../dacoAuthoring.js) (revision 756d63ed6f0fe8da2cbd61b5420f49def38d7590) @@ -4,7 +4,6 @@ //Initial behavior $(document).ready(function() { defaultShowAdditionaOptionsArea(); - resizeQuestionInputArea (); }); //Checks if the element exists and has an empty value @@ -13,18 +12,6 @@ return (elem!=null && elem.value!=""); } - //Resizes the question input area so it is visible on the screen. - function resizeQuestionInputArea (){ - var obj = window.document.getElementById('questionInputArea'); - if (!obj && window.parent) { - obj = window.parent.document.getElementById('questionInputArea'); - } - if (!obj) { - obj = window.top.document.getElementById('questionInputArea'); - } - obj.style.height=obj.contentWindow.document.body.scrollHeight + 10 + 'px'; - } - //Checks if the additional options area has all the default values, so it may stay hidden function defaultShowAdditionaOptionsArea(){ if (checkNonDefaultValue("max") @@ -45,7 +32,6 @@ else { $('#toggleAdditionalOptionsAreaLink').text(msgShowAdditionalOptions); } - resizeQuestionInputArea(); }); } @@ -110,24 +96,36 @@ //Packs additional elements and submits the question form function submitDacoQuestion(){ - var questionType = $("#questionType").val(); + if ( typeof CKEDITOR !== 'undefined' ) { + for ( instance in CKEDITOR.instances ) + CKEDITOR.instances[instance].updateElement(); + } + + var questionType = $("#questionType").val(); - if(questionType==7 || questionType==8 || questionType==9){ - $("#answerOptionList").val($("#answerOptionsForm").serialize()); - } - - else if (questionType == 10){ - var longlatMapsString = ""; - $("#longlatMaps option:selected").each(function (){ - longlatMapsString += this.value + "&"; - }); - $("#longlatMapsSelected").val(longlatMapsString); - } - - $("#dacoQuestionForm").submit(); - } - + if(questionType==7 || questionType==8 || questionType==9){ + $("#answerOptionList").val($("#answerOptionsForm").serialize()); + } + + else if (questionType == 10){ + var longlatMapsString = ""; + $("#longlatMaps option:selected").each(function (){ + longlatMapsString += this.value + "&"; + }); + $("#longlatMapsSelected").val(longlatMapsString); + } + + $.ajax({ + type: $("#dacoQuestionForm").attr('method'), + url: $("#dacoQuestionForm").attr('action'), + data: $("#dacoQuestionForm").serialize(), // serializes the form's elements. + success: function(data) { + $('#questionInputArea').html(data); + } + }); + } + //Cancels a question adding procedure function cancelDacoQuestion(){ - window.hideQuestionInputArea ? window.hideQuestionInputArea() : window.top.hideQuestionInputArea(); + window.hideQuestionInputArea ? window.hideQuestionInputArea() : window.parent.hideQuestionInputArea(); } \ No newline at end of file Index: lams_tool_daco/web/pages/authoring/advanced.jsp =================================================================== diff -u -r2ba408421bb2e9ae92dc8f0c98c0aa2312a6842a -r756d63ed6f0fe8da2cbd61b5420f49def38d7590 --- lams_tool_daco/web/pages/authoring/advanced.jsp (.../advanced.jsp) (revision 2ba408421bb2e9ae92dc8f0c98c0aa2312a6842a) +++ lams_tool_daco/web/pages/authoring/advanced.jsp (.../advanced.jsp) (revision 756d63ed6f0fe8da2cbd61b5420f49def38d7590) @@ -8,11 +8,11 @@ -
-
+
+
- - + + @@ -23,7 +23,7 @@ + property="daco.maxRecords" styleClass="form-control"> @@ -33,29 +33,29 @@
-
- -

+
+
+
-
- -

+
+
-
- - +
+
+
+
+
- - -
-
- -
\ No newline at end of file + +
+ + Index: lams_tool_daco/web/pages/authoring/authoring.jsp =================================================================== diff -u -rc367db7b5c528a0daed19a7bf7b3088e3b1268bc -r756d63ed6f0fe8da2cbd61b5420f49def38d7590 --- lams_tool_daco/web/pages/authoring/authoring.jsp (.../authoring.jsp) (revision c367db7b5c528a0daed19a7bf7b3088e3b1268bc) +++ lams_tool_daco/web/pages/authoring/authoring.jsp (.../authoring.jsp) (revision 756d63ed6f0fe8da2cbd61b5420f49def38d7590) @@ -69,11 +69,13 @@ +
+
Index: lams_tool_daco/web/pages/authoring/basic.jsp =================================================================== diff -u -r2ba408421bb2e9ae92dc8f0c98c0aa2312a6842a -r756d63ed6f0fe8da2cbd61b5420f49def38d7590 --- lams_tool_daco/web/pages/authoring/basic.jsp (.../basic.jsp) (revision 2ba408421bb2e9ae92dc8f0c98c0aa2312a6842a) +++ lams_tool_daco/web/pages/authoring/basic.jsp (.../basic.jsp) (revision 756d63ed6f0fe8da2cbd61b5420f49def38d7590) @@ -3,22 +3,23 @@ +
- +
- +
<%@ include file="/pages/authoring/parts/questionlist.jsp"%>
-
+
 

-

+

Index: lams_tool_daco/web/pages/authoring/parts/addcheckbox.jsp =================================================================== diff -u -r3032e0bfac4c505a0d5c985c0985c553241fbc71 -r756d63ed6f0fe8da2cbd61b5420f49def38d7590 --- lams_tool_daco/web/pages/authoring/parts/addcheckbox.jsp (.../addcheckbox.jsp) (revision 3032e0bfac4c505a0d5c985c0985c553241fbc71) +++ lams_tool_daco/web/pages/authoring/parts/addcheckbox.jsp (.../addcheckbox.jsp) (revision 756d63ed6f0fe8da2cbd61b5420f49def38d7590) @@ -35,58 +35,46 @@

- - + <%@ include file="description.jsp"%> -
- - - -
- - - -
Index: lams_tool_daco/web/pages/authoring/parts/adddate.jsp =================================================================== diff -u -re48fc0e1f6819e257b87efa36c3baec3c1c488f0 -r756d63ed6f0fe8da2cbd61b5420f49def38d7590 --- lams_tool_daco/web/pages/authoring/parts/adddate.jsp (.../adddate.jsp) (revision e48fc0e1f6819e257b87efa36c3baec3c1c488f0) +++ lams_tool_daco/web/pages/authoring/parts/adddate.jsp (.../adddate.jsp) (revision 756d63ed6f0fe8da2cbd61b5420f49def38d7590) @@ -5,7 +5,7 @@ <%@ include file="/common/header.jsp"%> - + --> \ No newline at end of file Index: lams_tool_daco/web/pages/authoring/parts/buttons.jsp =================================================================== diff -u --- lams_tool_daco/web/pages/authoring/parts/buttons.jsp (revision 0) +++ lams_tool_daco/web/pages/authoring/parts/buttons.jsp (revision 756d63ed6f0fe8da2cbd61b5420f49def38d7590) @@ -0,0 +1,4 @@ +
+ + +
Index: lams_tool_daco/web/pages/authoring/parts/description.jsp =================================================================== diff -u --- lams_tool_daco/web/pages/authoring/parts/description.jsp (revision 0) +++ lams_tool_daco/web/pages/authoring/parts/description.jsp (revision 756d63ed6f0fe8da2cbd61b5420f49def38d7590) @@ -0,0 +1,11 @@ + + +
+ + + +
+ Index: lams_tool_daco/web/pages/authoring/parts/questionlist.jsp =================================================================== diff -u -rd55722236d2f82c6bb0c46a30cbc39c22ac01943 -r756d63ed6f0fe8da2cbd61b5420f49def38d7590 --- lams_tool_daco/web/pages/authoring/parts/questionlist.jsp (.../questionlist.jsp) (revision d55722236d2f82c6bb0c46a30cbc39c22ac01943) +++ lams_tool_daco/web/pages/authoring/parts/questionlist.jsp (.../questionlist.jsp) (revision 756d63ed6f0fe8da2cbd61b5420f49def38d7590) @@ -71,19 +71,7 @@ <%-- This script will work when a new question is submited in order to refresh "Question List" panel. --%> \ No newline at end of file Index: lams_tool_daco/web/pages/learning/addRecord.jsp =================================================================== diff -u -r303ad8a12ec300c1a2a56a9a7ebbf7629dc8c19f -r756d63ed6f0fe8da2cbd61b5420f49def38d7590 --- lams_tool_daco/web/pages/learning/addRecord.jsp (.../addRecord.jsp) (revision 303ad8a12ec300c1a2a56a9a7ebbf7629dc8c19f) +++ lams_tool_daco/web/pages/learning/addRecord.jsp (.../addRecord.jsp) (revision 756d63ed6f0fe8da2cbd61b5420f49def38d7590) @@ -95,10 +95,10 @@ depending on the maximum number of characters the teacher provided --%> - + - + @@ -108,7 +108,7 @@ - + <%-- Number --%> @@ -126,33 +126,40 @@ - + <%-- Date can be entered in three textfields --%>
- -   - + +
+ +   +
+ +
+ + +   +
+ +
+ + + +
+
- -   - - - - - -
<%-- File --%>
- +
<%-- Image --%> @@ -170,7 +177,8 @@ <%-- It displays for example A) instead of 1) --%> - ${fn:substring(ordinal,status.index,status.index+1)})  
+ ${fn:substring(ordinal,status.index,status.index+1)}) +
@@ -179,8 +187,8 @@ - - + + @@ -194,10 +202,10 @@ - ${fn:substring(ordinal,status.index,status.index+1)}) - - -
+ ${fn:substring(ordinal,status.index,status.index+1)}) + +
@@ -207,27 +215,28 @@ - - - - - - - - - - -
- - - -
-
- - - -
-
+
+
+ +
+ +
+
+

+
+
+ + +
+ +
+ +
+
+

+
+
+
Index: lams_tool_daco/web/pages/learning/listRecords.jsp =================================================================== diff -u -rd55722236d2f82c6bb0c46a30cbc39c22ac01943 -r756d63ed6f0fe8da2cbd61b5420f49def38d7590 --- lams_tool_daco/web/pages/learning/listRecords.jsp (.../listRecords.jsp) (revision d55722236d2f82c6bb0c46a30cbc39c22ac01943) +++ lams_tool_daco/web/pages/learning/listRecords.jsp (.../listRecords.jsp) (revision 756d63ed6f0fe8da2cbd61b5420f49def38d7590) @@ -183,7 +183,7 @@ checked="checked" - > + > 
@@ -203,11 +203,11 @@ -
+  
- +
@@ -257,4 +257,4 @@ - + \ No newline at end of file Index: lams_tool_daco/web/pages/learning/listRecordsHorizontalPart.jsp =================================================================== diff -u -rbe37ea9b52fd18c106254805e3cc45a6581bdd87 -r756d63ed6f0fe8da2cbd61b5420f49def38d7590 --- lams_tool_daco/web/pages/learning/listRecordsHorizontalPart.jsp (.../listRecordsHorizontalPart.jsp) (revision be37ea9b52fd18c106254805e3cc45a6581bdd87) +++ lams_tool_daco/web/pages/learning/listRecordsHorizontalPart.jsp (.../listRecordsHorizontalPart.jsp) (revision 756d63ed6f0fe8da2cbd61b5420f49def38d7590) @@ -161,12 +161,13 @@ -<%-- + - - + + + - --%> + @@ -175,12 +176,12 @@ - ${answer.fileName} +  ${answer.fileName} - +
@@ -207,29 +208,29 @@ - +   -
@@ -192,7 +193,7 @@ checked="checked" - > + > 
+
-
+  
- +