mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
Fix widget-URL for subevents
This commit is contained in:
@@ -4,7 +4,7 @@ $(function () {
|
|||||||
if ($("div[data-lazy-id]").length == 0) {
|
if ($("div[data-lazy-id]").length == 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$.getJSON("widgets.json", function (data) {
|
$.getJSON("widgets.json" + ($("select[name='subevent']").val() ? "?subevent=" + $("select[name='subevent']").val() : ""), function (data) {
|
||||||
$.each(data.widgets, function (k, v) {
|
$.each(data.widgets, function (k, v) {
|
||||||
$("[data-lazy-id=" + v.lazy + "]").removeClass("widget-lazy-loading");
|
$("[data-lazy-id=" + v.lazy + "]").removeClass("widget-lazy-loading");
|
||||||
$("[data-lazy-id=" + v.lazy + "] .widget").html(v.content);
|
$("[data-lazy-id=" + v.lazy + "] .widget").html(v.content);
|
||||||
|
|||||||
Reference in New Issue
Block a user