more fixes, AI

This commit is contained in:
2026-03-31 22:10:30 +02:00
parent de1fa76e40
commit 2beb7aa75a
14 changed files with 121 additions and 67 deletions

View File

@@ -61,14 +61,17 @@ class LocationWidget(widgets.TextInput):
maps_url = f"https://maps.googleapis.com/maps/api/js?key={api_key}&language=de"
return widgets.Media(
css={"all": ("location_field/form.css",)},
css={
"all": (
"https://ajax.googleapis.com/ajax/libs/jqueryui/1.13.2/themes/smoothness/jquery-ui.css",
"location_field/form.css",
)
},
js=(
# jQuery and jQuery UI
"https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js",
# jQuery UI from CDN (jQuery is already loaded in base template)
"https://ajax.googleapis.com/ajax/libs/jqueryui/1.13.2/jquery-ui.min.js",
# Google Maps API with API key
maps_url,
"js/bindWithDelay.js",
"location_field/form.js",
)
)