Update of /var/cvs/applications/editwizard/templates/javascript
In directory james.mmbase.org:/tmp/cvs-serv15351

Modified Files:
      Tag: MMBase-1_8
        editwizard.jsp 
Log Message:
date fix, gave sometimes -1 when day was not a dropdown




See also: 
http://cvs.mmbase.org/viewcvs/applications/editwizard/templates/javascript


Index: editwizard.jsp
===================================================================
RCS file: /var/cvs/applications/editwizard/templates/javascript/editwizard.jsp,v
retrieving revision 1.62.2.6
retrieving revision 1.62.2.7
diff -u -b -r1.62.2.6 -r1.62.2.7
--- editwizard.jsp      31 May 2007 11:57:38 -0000      1.62.2.6
+++ editwizard.jsp      2 Apr 2008 12:09:47 -0000       1.62.2.7
@@ -6,7 +6,7 @@
  * and validation (in validator.js)
  *
  * @since    MMBase-1.6
- * @version  $Id: editwizard.jsp,v 1.62.2.6 2007/05/31 11:57:38 michiel Exp $
+ * @version  $Id: editwizard.jsp,v 1.62.2.7 2008/04/02 12:09:47 andre Exp $
  * @author   Kars Veling
  * @author   Pierre van Rooden
  * @author   Nico Klasens
@@ -39,7 +39,11 @@
               var d = new Date();
 
               if (elem.name == "internal_" + id + "_day") {
+                if (elem.selectedIndex) { 
                 elem.selectedIndex = d.getDate() - 1;
+                } else {
+                  elem.value = d.getDate();
+                }
               }
               if (elem.name == "internal_" + id + "_month") {
                 elem.selectedIndex = d.getMonth();
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to