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:
Pranam Lashkari 2020-04-23 15:15:09 +05:30 committed by Andras Timar
parent 8f05c15656
commit def2368547

View file

@ -1538,8 +1538,16 @@ L.Control.JSDialogBuilder = L.Control.extend({
var updateFunction = function (titleSpan) { var updateFunction = function (titleSpan) {
selectedColor = builder._getCurrentColor(data, builder); selectedColor = builder._getCurrentColor(data, builder);
valueNode.style.backgroundColor = selectedColor; valueNode.style.backgroundColor = selectedColor;
if (titleSpan) if (titleSpan) {
titleSpan.innerHTML = data.text; 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); }.bind(this);
updateFunction(null); updateFunction(null);