Update of /var/cvs/applications/editwizard/templates/javascript
In directory james.mmbase.org:/tmp/cvs-serv15437
Modified Files:
editwizard.jsp
Log Message:
date fix, gave sometimes -1 when day was not a dropdown box
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.71
retrieving revision 1.72
diff -u -b -r1.71 -r1.72
--- editwizard.jsp 23 Apr 2007 17:34:32 -0000 1.71
+++ editwizard.jsp 2 Apr 2008 12:11:46 -0000 1.72
@@ -6,7 +6,7 @@
* and validation (in validator.js)
*
* @since MMBase-1.6
- * @version $Id: editwizard.jsp,v 1.71 2007/04/23 17:34:32 michiel Exp $
+ * @version $Id: editwizard.jsp,v 1.72 2008/04/02 12:11:46 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