Location field problems fixed
This commit is contained in:
parent
663185fd40
commit
aaf1528426
|
@ -7,7 +7,6 @@
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
{{ form.media }}
|
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
{% if route %}
|
{% if route %}
|
||||||
|
|
||||||
{% addtoblock "css" strip %}<link rel="stylesheet" href="{{STATIC_URL}}/css/concert_route.css" type="text/css" media="screen" />{% endaddtoblock %}
|
{% addtoblock "css" strip %}<link rel="stylesheet" href="{{STATIC_URL}}/css/concert_route.css" type="text/css" media="screen" />{% endaddtoblock %}
|
||||||
{% addtoblock "js" strip %}<script type="text/javascript" src="//maps.google.com/maps/api/js?key={GOOGLE_MAPS_API_KEY}&sensor=false&language=de"></script>{% endaddtoblock %}
|
{% addtoblock "js" strip %}<script type="text/javascript" src="//maps.google.com/maps/api/js?key={{GOOGLE_MAPS_API_KEY}}&sensor=false&language=de"></script>{% endaddtoblock %}
|
||||||
|
|
||||||
|
|
||||||
{% addtoblock "js" %}
|
{% addtoblock "js" %}
|
||||||
|
|
|
@ -48,11 +48,9 @@ class LocationWidget(widgets.TextInput):
|
||||||
}
|
}
|
||||||
# Use schemaless URL so it works with both, http and https websites
|
# Use schemaless URL so it works with both, http and https websites
|
||||||
js = (
|
js = (
|
||||||
#'//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js', # jquery
|
|
||||||
#'//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js',
|
|
||||||
'/static/js/jquery-ui-1.10.0.custom.min.js',
|
'/static/js/jquery-ui-1.10.0.custom.min.js',
|
||||||
#'//maps.google.com/maps/api/js?sensor=false&language=de&key={}'.format(settings.GOOGLE_MAPS_API_KEY),
|
'//maps.google.com/maps/api/js?sensor=false&language=de&key={}'.format(settings.GOOGLE_MAPS_API_KEY),
|
||||||
'//maps.google.com/maps/api/js?sensor=false&language=de',
|
#'//maps.google.com/maps/api/js?sensor=false&language=de',
|
||||||
'/static/js/bindWithDelay.js',
|
'/static/js/bindWithDelay.js',
|
||||||
'/location_field/media/form.js',
|
'/location_field/media/form.js',
|
||||||
)
|
)
|
||||||
|
|
|
@ -11,6 +11,8 @@
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
{% render_block "css" %}
|
{% render_block "css" %}
|
||||||
|
{% render_block "js" %}
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="pull_top">
|
<body class="pull_top">
|
||||||
|
@ -81,8 +83,7 @@
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
|
||||||
{% render_block "js" %}
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue