Update of 
/var/cvs/contributions/didactor2/src/education/templates/education/tests
In directory james.mmbase.org:/tmp/cvs-serv2034

Modified Files:
        buildtest.jsp 
Log Message:



See also: 
http://cvs.mmbase.org/viewcvs/contributions/didactor2/src/education/templates/education/tests


Index: buildtest.jsp
===================================================================
RCS file: 
/var/cvs/contributions/didactor2/src/education/templates/education/tests/buildtest.jsp,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -b -r1.41 -r1.42
--- buildtest.jsp       7 Nov 2008 09:49:32 -0000       1.41
+++ buildtest.jsp       8 Jan 2009 13:45:01 -0000       1.42
@@ -111,8 +111,7 @@
             <mm:present referid="copybookNo">
               <!-- Determine if all questions are showed -->
               <c:choose>
-                <c:when test="${fn:length(my_questions) + 
fn:length(givenanswers) ge fn:length(questions)}">
-
+                <c:when test="${fn:length(my_questions) + 
fn:length(givenanswers) gt fn:length(questions)}">
                   <input type="button"
                          disabled="disabled"
                          value="${di:translate('education.buttontextdone')}"
@@ -124,9 +123,9 @@
                     <input type="button"
                            value="${di:translate('education.buttontextprev')}"
                            class="formbutton"
-                           onclick="questionform.command.value='back'; 
postContent('${post}', questionform);" />
+                           
onclick="document.forms.questionform.command.value='back'; 
postContent('${post}', document.forms.questionform);" />
                   </c:if>
-                  <c:if test="${learnobject.questionsperpage gt 0 or page * 
learnobject.questionsperpage lt fn:length(questions)}">
+                  <c:if test="${learnobject.questionsperpage gt 0 and page * 
learnobject.questionsperpage lt fn:length(questions)}">
                     <input type="button"
                            value="${di:translate('education.buttontextnext')}"
                            class="formbutton"
@@ -136,7 +135,7 @@
                     <input type="button"
                            value="${di:translate('education.buttontextdone')}"
                            class="formbutton"
-                           onclick="questionform.command.value='done'; 
postContent('${post}', questionform);" />
+                           
onclick="document.forms.questionform.command.value='done'; 
postContent('${post}', document.forms.questionform);" />
                   </c:if>
                 </c:otherwise>
               </c:choose>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to