mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-28 21:25:46 +01:00
Fix IE chatballon popups
This commit is contained in:
parent
d032909412
commit
655c0732b7
@ -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…
Reference in New Issue
Block a user