+
-
@@ -323,7 +323,7 @@
-
+
Index: lams_tool_assessment/web/pages/monitoring/parts/discloseAnswers5.jsp
===================================================================
diff -u -r08f538ec5750238a01bc6b9a029c05531a201c2e -rac1bc5dc42645586cf573699676b6f73fcf59d09
--- lams_tool_assessment/web/pages/monitoring/parts/discloseAnswers5.jsp (.../discloseAnswers5.jsp) (revision 08f538ec5750238a01bc6b9a029c05531a201c2e)
+++ lams_tool_assessment/web/pages/monitoring/parts/discloseAnswers5.jsp (.../discloseAnswers5.jsp) (revision ac1bc5dc42645586cf573699676b6f73fcf59d09)
@@ -24,19 +24,18 @@
button.click(function(event) {
- if (!confirm(isCorrectButton ? "
"
- : "
")) {
- return;
- }
-
- // check if correct answers are disclosed before groups' answers
- if (isCorrectButton &&
- !button.closest('.disclose-button-group').find('.disclose-groups-button').is('[disabled]') &&
- !confirm("
")) {
- return;
- }
-
- discloseAnswers(button, resultsPane, true);
+ showConfirm(isCorrectButton ? "
"
+ : "
", function(){
+ // check if correct answers are disclosed before groups' answers
+ if (isCorrectButton &&
+ !button.closest('.disclose-button-group').find('.disclose-groups-button').is('[disabled]')) {
+ showConfirm("
", function(){
+ discloseAnswers(button, resultsPane, true);
+ });
+ } else {
+ discloseAnswers(button, resultsPane, true);
+ }
+ });
});
});
@@ -47,23 +46,25 @@
// do not add a handler twice
if (!isRefresh) {
allCorrectButton.click(function(){
- if (!confirm("
")) {
- return;
- }
-
- // check if correct answers are disclosed before groups' answers
- if (!$('.disclose-all-groups-button', assessmentQuestionsPane).is('[disabled]') &&
- !confirm("
")) {
- return;
- }
-
- let nonDisclosedQuestions = $('.disclose-correct-button', assessmentQuestionsPane).not('[disabled]'),
- lastQuestionUid = nonDisclosedQuestions.last().closest('.disclose-button-group').attr('questionUid');
- nonDisclosedQuestions.each(function() {
- let isLast = lastQuestionUid == $(this).closest('.disclose-button-group').attr('questionUid');
- discloseAnswers($(this), resultsPane, isLast);
+ showConfirm("
", function(){
+ // check if correct answers are disclosed before groups' answers
+ let discloseFunction = function(){
+ let nonDisclosedQuestions = $('.disclose-correct-button', assessmentQuestionsPane).not('[disabled]'),
+ lastQuestionUid = nonDisclosedQuestions.last().closest('.disclose-button-group').attr('questionUid');
+ nonDisclosedQuestions.each(function() {
+ let isLast = lastQuestionUid == $(this).closest('.disclose-button-group').attr('questionUid');
+ discloseAnswers($(this), resultsPane, isLast);
+ });
+ disabledAndCheckButton(allCorrectButton);
+ };
+
+ if (!$('.disclose-all-groups-button', assessmentQuestionsPane).is('[disabled]')) {
+ showConfirm("
", discloseFunction);
+ return;
+ }
+
+ discloseFunction();
});
- disabledAndCheckButton(allCorrectButton);
});
}
} else {
@@ -75,17 +76,15 @@
// do not add a handler twice
if (!isRefresh) {
allGroupsButton.click(function(){
- if (!confirm("
")) {
- return;
- }
-
- let nonDisclosedQuestions = $('.disclose-groups-button', assessmentQuestionsPane).not('[disabled]'),
- lastQuestionUid = nonDisclosedQuestions.last().closest('.disclose-button-group').attr('questionUid');
- nonDisclosedQuestions.each(function() {
- let isLast = lastQuestionUid == $(this).closest('.disclose-button-group').attr('questionUid');
- discloseAnswers($(this), resultsPane, isLast);
+ showConfirm("
", function(){
+ let nonDisclosedQuestions = $('.disclose-groups-button', assessmentQuestionsPane).not('[disabled]'),
+ lastQuestionUid = nonDisclosedQuestions.last().closest('.disclose-button-group').attr('questionUid');
+ nonDisclosedQuestions.each(function() {
+ let isLast = lastQuestionUid == $(this).closest('.disclose-button-group').attr('questionUid');
+ discloseAnswers($(this), resultsPane, isLast);
+ });
+ disabledAndCheckButton(allGroupsButton);
});
- disabledAndCheckButton(allGroupsButton);
});
}
} else {
@@ -97,7 +96,6 @@
function discloseAnswers(button, resultsPane, isLast) {
let isCorrectButton = button.hasClass('disclose-correct-button'),
toolContentId = resultsPane.data('toolContentId');
-
$.ajax({
'url' : '
monitoring/'
+ (isCorrectButton ? 'discloseCorrectAnswers' : 'discloseGroupsAnswers')
@@ -116,6 +114,6 @@
}
function disabledAndCheckButton(button){
- button.attr('disabled', true).html('
' + button.text());
+ button.attr('disabled', true).html('
' + button.text());
}
\ No newline at end of file
Index: lams_tool_assessment/web/pages/tblmonitoring/assessment5.jsp
===================================================================
diff -u -r2a5fb646572b9790ef4b88e795e15811d94ed19d -rac1bc5dc42645586cf573699676b6f73fcf59d09
--- lams_tool_assessment/web/pages/tblmonitoring/assessment5.jsp (.../assessment5.jsp) (revision 2a5fb646572b9790ef4b88e795e15811d94ed19d)
+++ lams_tool_assessment/web/pages/tblmonitoring/assessment5.jsp (.../assessment5.jsp) (revision ac1bc5dc42645586cf573699676b6f73fcf59d09)
@@ -26,52 +26,50 @@
}
-
- <%-- For AEs tab the panes are defined in TBL monitor, for IRA we need to define it here --%>
-
-
-
-
-
-
-
-
+<%-- For AEs tab the panes are defined in TBL monitor, for IRA we need to define it here --%>
+
+
+
+
+
+
+
-
-
-
-
-
-
-
- : ${attemptedLearnersNumber}/
-
-
-
-
-
- <%-- Release correct/groups answers for all questions in this assessment --%>
-
-
+
-
+
+
+
+
+
+ : ${attemptedLearnersNumber}/
+
+
+
+
+
-
\ No newline at end of file
+
+
+ <%-- Release correct/groups answers for all questions in this assessment --%>
+
+
+
+
+
Index: lams_tool_assessment/web/pages/tblmonitoring/assessmentStudentChoices5.jsp
===================================================================
diff -u -r2a5fb646572b9790ef4b88e795e15811d94ed19d -rac1bc5dc42645586cf573699676b6f73fcf59d09
--- lams_tool_assessment/web/pages/tblmonitoring/assessmentStudentChoices5.jsp (.../assessmentStudentChoices5.jsp) (revision 2a5fb646572b9790ef4b88e795e15811d94ed19d)
+++ lams_tool_assessment/web/pages/tblmonitoring/assessmentStudentChoices5.jsp (.../assessmentStudentChoices5.jsp) (revision ac1bc5dc42645586cf573699676b6f73fcf59d09)
@@ -155,7 +155,7 @@
- bg-success text-white" >
+ | bg-success" >
${questionResultDto.answer}
|