summaryrefslogtreecommitdiff
path: root/chimere/templates
diff options
context:
space:
mode:
Diffstat (limited to 'chimere/templates')
-rw-r--r--chimere/templates/chimere/detail.html2
-rw-r--r--chimere/templates/search/search_js.html4
2 files changed, 4 insertions, 2 deletions
diff --git a/chimere/templates/chimere/detail.html b/chimere/templates/chimere/detail.html
index 854789d..b2210e2 100644
--- a/chimere/templates/chimere/detail.html
+++ b/chimere/templates/chimere/detail.html
@@ -1,6 +1,6 @@
{% load i18n sanitize chimere_tags %}
<button onclick='$("#detail").fadeOut();return false;' type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
-<h2 class='ui-widget ui-state-default ui-corner-all ui-widget-header'>{{ marker.name }}</h2>
+<h2>{{ marker.name }}</h2>
<div class='detail_content'>
{% if marker.default_pictures or marker.default_pictures or marker.default_multimedia_items%}
<div class='small-gallery'>
diff --git a/chimere/templates/search/search_js.html b/chimere/templates/search/search_js.html
index c8d9812..dc95007 100644
--- a/chimere/templates/search/search_js.html
+++ b/chimere/templates/search/search_js.html
@@ -18,7 +18,9 @@ $(function(){
geo_objects[idx]);
}
}
- window.setTimeout(function(){$("#main-map").chimere("zoomToMarkerExtent")}, 500);
+ if (geo_objects.length){
+ window.setTimeout(function(){$("#main-map").chimere("zoomToMarkerExtent")}, 500);
+ }
});
</script>