[Libreoffice-commits] online.git: loleaflet/css loleaflet/src
Szymon KÅos (via logerrit)
logerrit at kemper.freedesktop.org
Tue Apr 28 08:44:27 UTC 2020
loleaflet/css/mobilewizard.css | 4 ++++
loleaflet/src/control/Control.JSDialogBuilder.js | 5 ++++-
2 files changed, 8 insertions(+), 1 deletion(-)
New commits:
commit 6230ad4c27902aa232d3e20d9b287868ddbb78fb
Author: Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Wed Mar 11 14:08:29 2020 +0100
Commit: Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Tue Apr 28 10:44:07 2020 +0200
jsdialog: style disabled listboxes
Change-Id: I2dbe1b63bc4266261cefb45d472aef45c3b6fd3f
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/93033
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>
diff --git a/loleaflet/css/mobilewizard.css b/loleaflet/css/mobilewizard.css
index ef618b209..8cc5259bc 100644
--- a/loleaflet/css/mobilewizard.css
+++ b/loleaflet/css/mobilewizard.css
@@ -312,6 +312,10 @@ p.mobile-wizard.ui-combobox-text.selected {
background-color: #fff;
}
+.ui-header.mobile-wizard.disabled .ui-header-left * {
+ color: grey !important;
+}
+
.ui-header.mobile-wizard:active, .mobile-wizard.ui-combobox-text:active, .ui-header.mobile-wizard:focus, .mobile-wizard.ui-combobox-text:focus, .ui-header.mobile-wizard:hover, .mobile-wizard.ui-combobox-text:hover {
background-color: #eee;
}
diff --git a/loleaflet/src/control/Control.JSDialogBuilder.js b/loleaflet/src/control/Control.JSDialogBuilder.js
index f01480645..cced20a66 100644
--- a/loleaflet/src/control/Control.JSDialogBuilder.js
+++ b/loleaflet/src/control/Control.JSDialogBuilder.js
@@ -354,6 +354,9 @@ L.Control.JSDialogBuilder = L.Control.extend({
if (data && data.id)
sectionTitle.id = data.id;
+ if (data.enabled === 'false')
+ $(sectionTitle).addClass('disabled');
+
var leftDiv = L.DomUtil.create('div', 'ui-header-left', sectionTitle);
var titleClass = '';
console.debug('sectionTitle.id' + sectionTitle.id);
@@ -421,7 +424,7 @@ L.Control.JSDialogBuilder = L.Control.extend({
if (!data.nosubmenu)
{
$(contentDiv).hide();
- if (builder.wizard) {
+ if (builder.wizard && data.enabled !== 'false') {
$(sectionTitle).click(function(event, data) {
builder.wizard.goLevelDown(contentDiv, data);
if (contentNode.onshow)
More information about the Libreoffice-commits
mailing list