Fix IE chatballon popups

This commit is contained in:
Mike Primm 2011-10-23 22:50:26 -05:00
parent d032909412
commit 655c0732b7

View File

@ -30,7 +30,7 @@ componentconstructors['chatballoon'] = function(dynmap, configuration) {
layer: new L.Popup({autoPan: configuration.focuschatballoons, closeButton: false}), layer: new L.Popup({autoPan: configuration.focuschatballoons, closeButton: false}),
content: $('<div/>').addClass('balloonmessages')[0] content: $('<div/>').addClass('balloonmessages')[0]
}; };
popup.layer.setContent(popup.content); popup.layer.setContent($(popup.content).html());
popup.close = function() { popup.close = function() {
if (popup.timeout) { window.clearTimeout(popup.timeout); } if (popup.timeout) { window.clearTimeout(popup.timeout); }
@ -51,7 +51,7 @@ componentconstructors['chatballoon'] = function(dynmap, configuration) {
$(children[0]).remove(); $(children[0]).remove();
} }
popup.layer.setContent(popup.content); popup.layer.setContent($(popup.content).html());
if (popup.timeout) { window.clearTimeout(popup.timeout); } if (popup.timeout) { window.clearTimeout(popup.timeout); }
popup.timeout = window.setTimeout(function() { popup.timeout = window.setTimeout(function() {