loleaflet/src/control/Control.JSDialogBuilder.js |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 298cffd6b603ac53e6f8748c5b4d7be2f6c32c96
Author:     Henry Castro <hcas...@collabora.com>
AuthorDate: Wed Oct 23 15:34:22 2019 -0400
Commit:     Henry Castro <hcas...@collabora.com>
CommitDate: Thu Oct 24 02:10:22 2019 +0200

    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 <hcas...@collabora.com>
    Tested-by: Henry Castro <hcas...@collabora.com>

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);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to