[Libreoffice-commits] online.git: loleaflet/src

Henry Castro (via logerrit) logerrit at kemper.freedesktop.org
Thu Oct 24 00:11:16 UTC 2019


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

New commits:
commit 298cffd6b603ac53e6f8748c5b4d7be2f6c32c96
Author:     Henry Castro <hcastro at collabora.com>
AuthorDate: Wed Oct 23 15:34:22 2019 -0400
Commit:     Henry Castro <hcastro at 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 <hcastro at collabora.com>
    Tested-by: Henry Castro <hcastro at 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);


More information about the Libreoffice-commits mailing list