Don't show "[All Day] Nothing Scheduled" for "This week" or "Next week"

Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
David Zeuthen 2011-01-26 13:22:46 -05:00
parent 18f2f6f938
commit dd8716e5d9

View File

@ -690,13 +690,13 @@ EventsList.prototype = {
dayBegin.setDate(dayEnd.getDate() + 1); dayBegin.setDate(dayEnd.getDate() + 1);
dayEnd.setDate(dayBegin.getDate() + 6 - dayBegin.getDay()); dayEnd.setDate(dayBegin.getDate() + 6 - dayBegin.getDay());
this._addPeriod(_("Next week"), dayBegin, dayEnd, true, true); this._addPeriod(_("Next week"), dayBegin, dayEnd, true, false);
return; return;
} else { } else {
let d = 6 - dayEnd.getDay() - 1; let d = 6 - dayEnd.getDay() - 1;
dayBegin.setDate(dayBegin.getDate() + 1); dayBegin.setDate(dayBegin.getDate() + 1);
dayEnd.setDate(dayEnd.getDate() + 1 + d); dayEnd.setDate(dayEnd.getDate() + 1 + d);
this._addPeriod(_("This week"), dayBegin, dayEnd, true, true); this._addPeriod(_("This week"), dayBegin, dayEnd, true, false);
} }
}, },