[Libreoffice-commits] online.git: loleaflet/src
Pedro Pinto Silva (via logerrit)
logerrit at kemper.freedesktop.org
Fri Sep 11 16:44:42 UTC 2020
loleaflet/src/control/Control.JSDialogBuilder.js | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
New commits:
commit 8a20b74e36cc12f24b92105f8b20929d9f172bca
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: Fri Sep 11 18:44:23 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>
diff --git a/loleaflet/src/control/Control.JSDialogBuilder.js b/loleaflet/src/control/Control.JSDialogBuilder.js
index 8be8a1603..f6679381c 100644
--- a/loleaflet/src/control/Control.JSDialogBuilder.js
+++ b/loleaflet/src/control/Control.JSDialogBuilder.js
@@ -1693,10 +1693,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