[Libreoffice-commits] online.git: loleaflet/src
Pranam Lashkari (via logerrit)
logerrit at kemper.freedesktop.org
Thu Apr 23 16:10:04 UTC 2020
loleaflet/src/control/Control.JSDialogBuilder.js | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
New commits:
commit def23685476f0878e2e283f3b49330494c4cfb51
Author: Pranam Lashkari <lpranam at collabora.com>
AuthorDate: Thu Apr 23 15:15:09 2020 +0530
Commit: Andras Timar <andras.timar at collabora.com>
CommitDate: Thu Apr 23 18:09:47 2020 +0200
leaflet: slide background color/gradient name replaced
color names are replaced with descriptive names
i.e: background color, gradient start, gradient end
Change-Id: I4d8a8bec6f180efa3874275f6ed0aeec33369bb1
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92750
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Andras Timar <andras.timar at collabora.com>
diff --git a/loleaflet/src/control/Control.JSDialogBuilder.js b/loleaflet/src/control/Control.JSDialogBuilder.js
index c9a410feb..4deb8e296 100644
--- a/loleaflet/src/control/Control.JSDialogBuilder.js
+++ b/loleaflet/src/control/Control.JSDialogBuilder.js
@@ -1538,8 +1538,16 @@ L.Control.JSDialogBuilder = L.Control.extend({
var updateFunction = function (titleSpan) {
selectedColor = builder._getCurrentColor(data, builder);
valueNode.style.backgroundColor = selectedColor;
- if (titleSpan)
- titleSpan.innerHTML = data.text;
+ if (titleSpan) {
+ if (data.id === 'fillattr')
+ titleSpan.innerHTML = _('Background Color');
+ else if (data.id === 'fillattr2')
+ titleSpan.innerHTML = _('Gradient Start');
+ else if (data.id === 'fillattr3')
+ titleSpan.innerHTML = _('Gradient End');
+ else
+ titleSpan.innerHTML = data.text;
+ }
}.bind(this);
updateFunction(null);
More information about the Libreoffice-commits
mailing list