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

Modified Files:
        frontend_tree.jsp 
Log Message:
only post the checked checkboxes, like a normal post


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


Index: frontend_tree.jsp
===================================================================
RCS file: 
/var/cvs/contributions/didactor2/src/education/templates/education/js/frontend_tree.jsp,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -b -r1.25 -r1.26
--- frontend_tree.jsp   15 Feb 2008 14:44:48 -0000      1.25
+++ frontend_tree.jsp   19 Feb 2008 14:57:48 -0000      1.26
@@ -227,6 +227,8 @@
     }
     var textareas = form.getElementsByTagName("input");
     for (i=0; i<textareas.length; i++) {
+        if (textareas[i].type == "checkbox" && !textareas[i].checked)
+            continue;    
         var ta = textareas[i];
         content += sep + ta.name + '=' + ta.value;
         sep = '&';
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to