From 655c0732b70ea5713dbbf5a92b09d5557b5dc04d Mon Sep 17 00:00:00 2001 From: Mike Primm Date: Sun, 23 Oct 2011 22:50:26 -0500 Subject: [PATCH] Fix IE chatballon popups --- web/js/chatballoon.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/js/chatballoon.js b/web/js/chatballoon.js index e47bd67d..c0bf8c49 100644 --- a/web/js/chatballoon.js +++ b/web/js/chatballoon.js @@ -30,7 +30,7 @@ componentconstructors['chatballoon'] = function(dynmap, configuration) { layer: new L.Popup({autoPan: configuration.focuschatballoons, closeButton: false}), content: $('
').addClass('balloonmessages')[0] }; - popup.layer.setContent(popup.content); + popup.layer.setContent($(popup.content).html()); popup.close = function() { if (popup.timeout) { window.clearTimeout(popup.timeout); } @@ -51,7 +51,7 @@ componentconstructors['chatballoon'] = function(dynmap, configuration) { $(children[0]).remove(); } - popup.layer.setContent(popup.content); + popup.layer.setContent($(popup.content).html()); if (popup.timeout) { window.clearTimeout(popup.timeout); } popup.timeout = window.setTimeout(function() {