diff --git a/loleaflet/src/control/Control.JSDialogBuilder.js b/loleaflet/src/control/Control.JSDialogBuilder.js index 97eb06109..8a1c197ed 100644 --- a/loleaflet/src/control/Control.JSDialogBuilder.js +++ b/loleaflet/src/control/Control.JSDialogBuilder.js @@ -547,7 +547,8 @@ L.Control.JSDialogBuilder = L.Control.extend({ image = data.entries[index].image; image = image.substr(0, image.lastIndexOf('.')); image = image.substr(image.lastIndexOf('/') + 1); - elem = L.DomUtil.create('div', 'layout ' + image, parentContainer); + elem = L.DomUtil.create('div', 'layout ' + image + + (data.entries[index].selected ? ' loleaflet-context-down' : ''), parentContainer); $(elem).data('id', data.entries[index].id); $(elem).click(function () { builder.callback('valueset', 'selected', { id: data.id }, $(this).data('id'), builder);