Fix IE chatballon popups
This commit is contained in:
parent
aa001746ac
commit
b53b88e1a6
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}),
|
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() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue