mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Fix: change widget to use new date-based URLs in calendar-view (#2382)
This commit is contained in:
committed by
GitHub
parent
aed64d16f6
commit
c8a830ecde
@@ -1396,9 +1396,9 @@ var shared_root_methods = {
|
|||||||
url += "&cart_id=" + encodeURIComponent(cart_id);
|
url += "&cart_id=" + encodeURIComponent(cart_id);
|
||||||
}
|
}
|
||||||
if (this.$root.date !== null) {
|
if (this.$root.date !== null) {
|
||||||
url += "&year=" + this.$root.date.substr(0, 4) + "&month=" + this.$root.date.substr(5, 2);
|
url += "&date=" + this.$root.date.substr(0, 7);
|
||||||
} else if (this.$root.week !== null) {
|
} else if (this.$root.week !== null) {
|
||||||
url += "&year=" + this.$root.week[0] + "&week=" + this.$root.week[1];
|
url += "&date=" + this.$root.week[0] + "-W" + this.$root.week[1];
|
||||||
}
|
}
|
||||||
if (this.$root.style !== null) {
|
if (this.$root.style !== null) {
|
||||||
url = url + '&style=' + encodeURIComponent(this.$root.style);
|
url = url + '&style=' + encodeURIComponent(this.$root.style);
|
||||||
|
|||||||
Reference in New Issue
Block a user