more fixes, AI
This commit is contained in:
@@ -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",
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user