Commit 96c4a324 authored by Leonidas Poulopoulos's avatar Leonidas Poulopoulos
Browse files

Fixed issue with infowindow not showing up

parent f50b5a4b
......@@ -41,7 +41,6 @@ body {
"ITC Franklin Gothic", Arial, sans-serif;
letter-spacing: -1px;
width: 300px;
"
}
.navbar .brand { max-height: 40px; overflow: visible;padding-top: 0;padding-bottom: 0; }
</style>
......
......@@ -98,7 +98,7 @@ $.get("{% url get-service-points %}", function(data){
bounds.extend(marker.position);
markers.push(marker);
google.maps.event.addListener(marker, 'click', function() {
infoWindow.content = "<div><h4>"+jsonMarker.name+"</h4>"+
infoWindow.setContent( "<div><h4>"+jsonMarker.name+"</h4>"+
"<div class='tabbable'>"+
"<ul class='nav nav-tabs'>"+
......@@ -125,7 +125,7 @@ $.get("{% url get-service-points %}", function(data){
"</div>"+
"</div>"+
"<div style='text-align:right;'><a href = '{% url edit-services %}"+jsonMarker.key+"' class='btn btn-primary'>Edit</a></div>"+
"</div>";
"</div>");
infoWindow.open(map,marker);
});
}
......
......@@ -262,9 +262,9 @@ margin-bottom: 0px;
eduMarker,
'click',
function() {
infoWindow.content = "<div>"
infoWindow.setContent( "<div>"
+ data.text
+ "</div>";
+ "</div>");
infoWindow
.open(
map,
......
......@@ -4,11 +4,7 @@
{% block hometop %}class="active"{% endblock %}
{% block extrahead %}
<style type="text/css">
/* html,body {
height: 100%;
overflow: hidden;
}*/
.headtitle {font-family: "Franklin Gothic Demi", "Franklin Gothic", "ITC Franklin Gothic", Arial, sans-serif; letter-spacing: -1px; }
.headtitle {font-family: "Franklin Gothic Demi", "Franklin Gothic", "ITC Franklin Gothic", Arial, sans-serif; letter-spacing: -1px; }
</style>
<script type="text/javascript" src="/static/js/jquery.min.js"></script>
<script type="text/javascript" src="/static/js/markerclusterer.js"></script>
......@@ -158,7 +154,7 @@
marker,
'click',
function() {
infoWindow.content = "<div><h4>"
infoWindow.setContent ( "<div><h4>"
+ jsonMarker.inst
+ "</h4>"
+
......@@ -207,7 +203,7 @@
+ "</div>"
+ "</div>"
+ "</div>"
+ "</div>";
+ "</div>");
infoWindow
.open(
map,
......
......@@ -157,7 +157,7 @@
marker,
'click',
function() {
infoWindow.content = jsonMarker.text;
infoWindow.setContent(jsonMarker.text);
infoWindow
.open(
map,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment