fehler behoben
This commit is contained in:
parent
d637fe4d9d
commit
bfa58fba42
1 changed files with 2 additions and 2 deletions
|
@ -196,7 +196,7 @@ Page {
|
||||||
if(date.getDate() === today.getDate()){
|
if(date.getDate() === today.getDate()){
|
||||||
return("Heute")
|
return("Heute")
|
||||||
}
|
}
|
||||||
else if(date.getDate() === today.getDate() + 1 || (date.getDay() === 1 && today.getMonth() === date.getMonth() + 1)){
|
else if(date.getDate() === today.getDate() + 1 || (date.getDate() === 1 && date.getMonth() === today.getMonth() + 1)){
|
||||||
return("Morgen")
|
return("Morgen")
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -206,7 +206,7 @@ Page {
|
||||||
}
|
}
|
||||||
function isDayVisible(index){
|
function isDayVisible(index){
|
||||||
var date = _cppServerConn.getFoodPlanData(index).date
|
var date = _cppServerConn.getFoodPlanData(index).date
|
||||||
return( date.getDate() >= today.getDate() || date.getMonth() > today.getMonth())
|
return( date.getDate() >= today.getDate() && date.getMonth() >= today.getMonth())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue