Update of
/var/cvs/contributions/CMSContainer/cmsc/edit-webapp/src/webapp/mmbase/edit/wizard/jsp
In directory james.mmbase.org:/tmp/cvs-serv15346
Modified Files:
calendar.jsp
Log Message:
CMSC-1180 Newsletter: change newsletter schedule mechanism
See also:
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer/cmsc/edit-webapp/src/webapp/mmbase/edit/wizard/jsp
See also: http://www.mmbase.org/jira/browse/CMSC-1180
Index: calendar.jsp
===================================================================
RCS file:
/var/cvs/contributions/CMSContainer/cmsc/edit-webapp/src/webapp/mmbase/edit/wizard/jsp/calendar.jsp,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- calendar.jsp 10 Feb 2009 22:20:41 -0000 1.11
+++ calendar.jsp 27 Feb 2009 03:48:56 -0000 1.12
@@ -74,10 +74,12 @@
}
hour.options.add(opt);
}
- for(var j = 0 ; j <60 ;j++) {
+ var hasSelected = false;
+ for(var j = 0 ; j <60 ;) {
var opt = document.createElement('OPTION');
- if(j == now.getMinutes()) {
+ if( j >= now.getMinutes() && hasSelected == false){
opt.selected = true;
+ hasSelected = true;
}
if(j <10) {
opt.value ="0"+ j;
@@ -87,6 +89,7 @@
opt.value =j;
opt.text = j;
}
+ j += 5;
minute.options.add(opt);
}
}
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs