Restrict day calendar JS to day calendar page

This commit is contained in:
Raphael Michel
2021-11-19 19:02:46 +01:00
parent 910a35dedc
commit 6f0f4755ef

View File

@@ -513,7 +513,7 @@ $(function () {
var c = parseInt(this.getAttribute("data-concurrency"), 10);
if (c > 9) this.style.setProperty('--concurrency', c);
});
(function() {
$(".day-calendar").each(function() {
var s = window.getComputedStyle($(".day-timeline > li").get(0));
if (s.getPropertyValue('grid-column-start') != "auto") return;
@@ -536,8 +536,7 @@ $(function () {
this.style.gridColumn = columnStart + " / span " + columnSpan;
});
});
})();
$(".day-calendar").each(function() {
var timezone = this.getAttribute("data-timezone");
var startTime = moment.tz(this.getAttribute("data-start"), timezone);