mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-24 03:05:28 +01:00
Makes sure popups for circles, areas, lines had correct class
This commit is contained in:
parent
e5cab354ea
commit
c6c46bdd41
@ -185,7 +185,7 @@ componentconstructors['markers'] = function(dynmap, configuration) {
|
||||
$(popup).addClass('AreaPopup').append(area.desc);
|
||||
}
|
||||
else {
|
||||
$(popup).append(area.label);
|
||||
$(popup).addClass('AreaPopup').append(area.label);
|
||||
}
|
||||
area.our_layer.bindPopup($(popup).html(), {});
|
||||
}
|
||||
@ -215,7 +215,7 @@ componentconstructors['markers'] = function(dynmap, configuration) {
|
||||
$(popup).addClass('LinePopup').append(line.desc);
|
||||
}
|
||||
else {
|
||||
$(popup).append(line.label);
|
||||
$(popup).addClass('LinePopup').append(line.label);
|
||||
}
|
||||
line.our_layer.bindPopup($(popup).html(), {});
|
||||
}
|
||||
@ -247,7 +247,7 @@ componentconstructors['markers'] = function(dynmap, configuration) {
|
||||
$(popup).addClass('CirclePopup').append(circle.desc);
|
||||
}
|
||||
else {
|
||||
$(popup).append(circle.label);
|
||||
$(popup).addClass('CirclePopup').append(circle.label);
|
||||
}
|
||||
circle.our_layer.bindPopup($(popup).html(), {});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user