Update of /var/cvs/contributions/didactor2/src/assessment/templates/assessment
In directory james.mmbase.org:/tmp/cvs-serv17800

Modified Files:
        stage1-goals_problems.jspx closelesson.link.jspx 
Log Message:
changed save action


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


Index: stage1-goals_problems.jspx
===================================================================
RCS file: 
/var/cvs/contributions/didactor2/src/assessment/templates/assessment/stage1-goals_problems.jspx,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- stage1-goals_problems.jspx  14 Apr 2009 09:56:04 -0000      1.9
+++ stage1-goals_problems.jspx  16 Apr 2009 09:43:35 -0000      1.10
@@ -47,7 +47,12 @@
       </mm-sr:relatednodes>
     </mm:treefile>
   </mm:node>  
-  <a href="#" onclick="window.location.reload()" class="formActionLinks" 
>opslaan</a>
+       <mm:link>
+               <c:if test="${!empty sub}">
+                       <mm:param name="sub" referid="sub"/>
+               </c:if>
+       <a href="${_}" class="formActionLinks">opslaan</a>
+       </mm:link>
   
   <!-- categorize problems -->
   <h2>3. Soort probleem en hoeveel last heeft u er van</h2>


Index: closelesson.link.jspx
===================================================================
RCS file: 
/var/cvs/contributions/didactor2/src/assessment/templates/assessment/closelesson.link.jspx,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- closelesson.link.jspx       9 Apr 2009 11:02:59 -0000       1.15
+++ closelesson.link.jspx       16 Apr 2009 09:43:35 -0000      1.16
@@ -6,7 +6,7 @@
     xmlns:mm-sr="http://www.mmbase.org/tags/mm/searchrelate";
     class="submitItems">
   <jsp:output omit-xml-declaration="true" />
-
+       <mm:import externid="sub" />
   <mm:import id="currentlesson" from="session" 
externid="currentlesson_${user}_${education}" />
          <c:if test="${! empty currentlesson}">
     <mm:node referid="currentlesson" id="currentlesson" />
@@ -30,8 +30,14 @@
     </mm:node>
   </c:if>
   
-  <form name="closelessonform" id="closelessonform2" action="${formAction}"   
method="post">
-       <a href="#" 
class="formActionLinks">opslaan</a><jsp:text>&amp;nbsp;|&amp;nbsp;</jsp:text>
+  <form name="closelessonform" action="${formAction}"   method="post">
+       <mm:link>
+               <c:if test="${!empty sub}">
+                       <mm:param name="sub" referid="sub"/>
+               </c:if>
+       <a href="${_}" class="formActionLinks">opslaan</a>
+       </mm:link>
+       <jsp:text>&amp;nbsp;|&amp;nbsp;</jsp:text>
                <input type="hidden" name="coachmode" value="false"  />
     <input type="hidden" name="lesson" value="${currentlesson}"  />
     <c:if test="${empty feedback and ! empty currentlesson}">
@@ -41,7 +47,7 @@
                        <a href="#" class="formActionLinks">je les is 
verstuurd</a><jsp:text> | </jsp:text>
                </c:if>
        <c:if test="${!justclosed}">
-               <a href="#" 
onclick="document.getElementById('closelessonform2').submit()" 
class="formActionLinks">${_}</a><jsp:text> | </jsp:text>
+               <a href="#" onclick="document.closelessonform.sumbit()" 
class="formActionLinks">${_}</a><jsp:text> | </jsp:text>
        </c:if>
        
                        </di:translate>                          
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to