Fix bug - le calendrier buggait parce que la boucle qui parcourait l'Array des jours allait plus loin que la fin du contenu et commençait à parcourir les propriétés et les méthodes de l'objet Array. En JS, c'est un objet dont tous les attributs/méthodes sont des éléments.
Agrandi la frame du haut pour rendre les boutons visibles sous FF
This commit is contained in:
parent
49d14462b9
commit
7b4ceb4e80
@ -201,7 +201,7 @@ function showCalendar(dateField) {
|
||||
// USE THE JAVASCRIPT-GENERATED DOCUMENTS (calDocTop, calDocBottom) IN THE FRAMESET
|
||||
calDocFrameset =
|
||||
"<HTML><HEAD><TITLE>JavaScript Calendar</TITLE></HEAD>\n" +
|
||||
"<FRAMESET ROWS='50,*' FRAMEBORDER='0'>\n" +
|
||||
"<FRAMESET ROWS='60,*' FRAMEBORDER='0'>\n" +
|
||||
" <FRAME NAME='topCalFrame' SRC='javascript:parent.opener.calDocTop' SCROLLING='no'>\n" +
|
||||
" <FRAME NAME='bottomCalFrame' SRC='javascript:parent.opener.calDocBottom' SCROLLING='no'>\n" +
|
||||
"</FRAMESET>\n";
|
||||
@ -613,8 +613,7 @@ function getMonthSelect() {
|
||||
monthSelect = "<SELECT NAME='month' onChange='parent.opener.setCurrentMonth()'>";
|
||||
|
||||
// LOOP THROUGH MONTH ARRAY
|
||||
for (i in monthArray) {
|
||||
|
||||
for (var i=0;i<monthArray.length;i++) {
|
||||
// SHOW THE CORRECT MONTH IN THE SELECT LIST
|
||||
if (i == activeMonth) {
|
||||
monthSelect += "<OPTION SELECTED>" + monthArray[i] + "\n";
|
||||
@ -657,8 +656,7 @@ function createWeekdayList() {
|
||||
var weekdays = "<TR BGCOLOR='" + headingCellColor + "'>";
|
||||
|
||||
// LOOP THROUGH WEEKDAY ARRAY
|
||||
for (i in weekdayArray) {
|
||||
|
||||
for (var i=0;i<weekdayArray.length;i++) {
|
||||
weekdays += "<TD class='heading' align=center>" + weekdayArray[i] + "</TD>";
|
||||
}
|
||||
weekdays += "</TR>";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user