added: space between weeks in events
This commit is contained in:
parent
f6984dab12
commit
ca29382b55
4
main.js
4
main.js
|
@ -1049,6 +1049,10 @@ function showupcomingevents()
|
||||||
for (var i in sorted[year][month])
|
for (var i in sorted[year][month])
|
||||||
{
|
{
|
||||||
var event = sorted[year][month][i];
|
var event = sorted[year][month][i];
|
||||||
|
if (i > 0 && event.DTSTART.getDate() != sorted[year][month][i-1].DTSTART.getDate() && event.DTSTART.getDay() <= sorted[year][month][i-1].DTSTART.getDay())
|
||||||
|
{
|
||||||
|
content += "\n\n";
|
||||||
|
}
|
||||||
content += event.readabledate.split(" ")[0] + " " + event.readabledate.split(" ")[1] + ": " + event.SUMMARY + "\n";
|
content += event.readabledate.split(" ")[0] + " " + event.readabledate.split(" ")[1] + ": " + event.SUMMARY + "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue