Fix IE chatballon popups
This commit is contained in:
parent
d032909412
commit
655c0732b7
1 changed files with 2 additions and 2 deletions
|
|
@ -30,7 +30,7 @@ componentconstructors['chatballoon'] = function(dynmap, configuration) {
|
|||
layer: new L.Popup({autoPan: configuration.focuschatballoons, closeButton: false}),
|
||||
content: $('<div/>').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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue