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@gmail.com> Reviewed-by: Andras Timar <andras.timar@collabora.com>
This commit is contained in:
parent
8f05c15656
commit
def2368547
1 changed files with 10 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue