mirror of
https://github.com/webbukkit/dynmap.git
synced 2025-02-17 20:31:37 +01:00
Remove marker label field if label for marker is blank ("")
This commit is contained in:
parent
3c849b9d66
commit
4a3e95a118
@ -78,7 +78,7 @@ componentconstructors['markers'] = function(dynmap, configuration) {
|
|||||||
.addClass('markerName' + marker.dim)
|
.addClass('markerName' + marker.dim)
|
||||||
.append(marker.label));
|
.append(marker.label));
|
||||||
}
|
}
|
||||||
else
|
else if(marker.label != "")
|
||||||
$(div).append($('<span/>')
|
$(div).append($('<span/>')
|
||||||
.addClass(configuration.showlabel?'markerName-show':'markerName')
|
.addClass(configuration.showlabel?'markerName-show':'markerName')
|
||||||
.addClass('markerName_' + set.id)
|
.addClass('markerName_' + set.id)
|
||||||
|
Loading…
Reference in New Issue
Block a user