mirror of
https://github.com/pretix/pretix.git
synced 2026-05-13 16:33:59 +00:00
Day calendar: Fix missing current-time-bar back for all browsers (#2342)
This commit is contained in:
committed by
GitHub
parent
8254d8f5cc
commit
475a5be351
@@ -513,12 +513,12 @@ $(function () {
|
||||
var c = parseInt(this.getAttribute("data-concurrency"), 10);
|
||||
if (c > 9) this.style.setProperty('--concurrency', c);
|
||||
});
|
||||
$(".day-calendar").each(function() {
|
||||
var s = window.getComputedStyle($(".day-timeline > li").get(0));
|
||||
|
||||
if (s.getPropertyValue('grid-column-start') != "auto") return;
|
||||
// Fix Chrome not being able to use calc-division in grid
|
||||
$(".day-calendar").each(function() {
|
||||
// Fix Chrome not being able to use calc-division in grid
|
||||
var s = window.getComputedStyle($(".day-timeline > li").get(0));
|
||||
if (s.getPropertyValue('grid-column-start') != "auto") return;
|
||||
|
||||
var rasterSize = this.getAttribute("data-raster-size");
|
||||
var duration = this.getAttribute("data-duration").split(":");
|
||||
var cols = duration[0]*60/rasterSize + duration[1]/rasterSize;
|
||||
@@ -537,6 +537,8 @@ $(function () {
|
||||
});
|
||||
});
|
||||
|
||||
$(".day-calendar").each(function() {
|
||||
|
||||
var timezone = this.getAttribute("data-timezone");
|
||||
var startTime = moment.tz(this.getAttribute("data-start"), timezone);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user