summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2012-11-19 11:52:08 +0100
committerÉtienne Loks <etienne.loks@peacefrogs.net>2012-11-19 11:52:08 +0100
commit69419708b620334d55add55416b65e4adebca6a3 (patch)
tree23d3f6bf04799cadbaee75ff89018fb82b130e57
parent0fb1da3a0106c17608d8bc8852ddc8376ee30f17 (diff)
downloadChimère-69419708b620334d55add55416b65e4adebca6a3.tar.bz2
Chimère-69419708b620334d55add55416b65e4adebca6a3.zip
JS: improve popup display when the content is inside the popup
-rw-r--r--chimere/static/chimere/js/jquery.chimere.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/chimere/static/chimere/js/jquery.chimere.js b/chimere/static/chimere/js/jquery.chimere.js
index 09baa2d..7dd9f4d 100644
--- a/chimere/static/chimere/js/jquery.chimere.js
+++ b/chimere/static/chimere/js/jquery.chimere.js
@@ -768,7 +768,9 @@ OpenLayers.Layer.MapQuestOSM = OpenLayers.Class(OpenLayers.Layer.XYZ, {
feature.pk = mark.properties.pk;
feature.popupClass = settings.popupClass;
feature.data.popupContentHTML = "<div class='cloud'>";
- feature.data.popupContentHTML += mark.properties.name;
+ if (!settings.popupContentFull) {
+ feature.data.popupContentHTML += mark.properties.name;
+ }
feature.data.popupContentHTML += "</div>";
feature.data.overflow = 'hidden';
var marker = feature.createMarker();