loleaflet: apply a border style when the "valueset" item is selected
When the user selects an item (touch), the LO server updates and send selected data to apply border styles. Change-Id: Ic6f877712514806b822d70342738ee04ae2ea0a8 Reviewed-on: https://gerrit.libreoffice.org/81419 Reviewed-by: Henry Castro <hcastro@collabora.com> Tested-by: Henry Castro <hcastro@collabora.com>
This commit is contained in:
parent
3d576a07de
commit
298cffd6b6
1 changed files with 2 additions and 1 deletions
|
@ -547,7 +547,8 @@ L.Control.JSDialogBuilder = L.Control.extend({
|
||||||
image = data.entries[index].image;
|
image = data.entries[index].image;
|
||||||
image = image.substr(0, image.lastIndexOf('.'));
|
image = image.substr(0, image.lastIndexOf('.'));
|
||||||
image = image.substr(image.lastIndexOf('/') + 1);
|
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).data('id', data.entries[index].id);
|
||||||
$(elem).click(function () {
|
$(elem).click(function () {
|
||||||
builder.callback('valueset', 'selected', { id: data.id }, $(this).data('id'), builder);
|
builder.callback('valueset', 'selected', { id: data.id }, $(this).data('id'), builder);
|
||||||
|
|
Loading…
Reference in a new issue