[Libreoffice-commits] online.git: Branch 'distro/collabora/co-4-2' - loleaflet/src
Pedro Pinto Silva (via logerrit)
logerrit at kemper.freedesktop.org
Mon Sep 14 12:37:22 UTC 2020
loleaflet/src/control/Control.JSDialogBuilder.js | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
New commits:
commit 9f9fdfbb9c32570d07ce58986279dbcc64501bd8
Author: Pedro Pinto Silva <pedro.silva at collabora.com>
AuthorDate: Fri Sep 11 16:49:51 2020 +0200
Commit: Pedro Silva <pedro.silva at collabora.com>
CommitDate: Mon Sep 14 14:37:04 2020 +0200
Add missing class (selected) to _unoToolButton
Change-Id: Ia7a5cdb840240ffbbe3f73c23264750b5d8e9d82
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102486
Reviewed-by: Pranam Lashkari <lpranam at collabora.com>
Tested-by: Pedro Silva <pedro.silva at collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
(cherry picked from commit 8a20b74e36cc12f24b92105f8b20929d9f172bca)
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102637
Reviewed-by: Pedro Silva <pedro.silva at collabora.com>
diff --git a/loleaflet/src/control/Control.JSDialogBuilder.js b/loleaflet/src/control/Control.JSDialogBuilder.js
index 87fe1060d..e0b2f17be 100644
--- a/loleaflet/src/control/Control.JSDialogBuilder.js
+++ b/loleaflet/src/control/Control.JSDialogBuilder.js
@@ -1648,10 +1648,14 @@ L.Control.JSDialogBuilder = L.Control.extend({
var items = builder.map['stateChangeHandler'];
var state = items.getItemValue(data.command);
- if (state && state === 'true')
+ if (state && state === 'true') {
$(button).addClass('selected');
- else
+ $(div).addClass('selected');
+ }
+ else {
$(button).removeClass('selected');
+ $(div).removeClass('selected');
+ }
if (state && state === 'disabled')
$(div).addClass('disabled');
More information about the Libreoffice-commits
mailing list