[Libreoffice-commits] online.git: loleaflet/dist

Aron Budea aron.budea at collabora.com
Thu Apr 20 00:27:43 UTC 2017


 loleaflet/dist/toolbar/toolbar.js |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 33a562515bb1ce425caea4ea9383ddff2a34af2e
Author: Aron Budea <aron.budea at collabora.com>
Date:   Fri Apr 14 22:58:45 2017 +0200

    Show font/highlight color on toolbar in IE 11 as well
    
    .repeat is not supported.
    
    Change-Id: I4f9d75f851f73e4cc626ca6f0a13aa1877308e70
    Reviewed-on: https://gerrit.libreoffice.org/36553
    Reviewed-by: Henry Castro <hcastro at collabora.com>
    Tested-by: Henry Castro <hcastro at collabora.com>

diff --git a/loleaflet/dist/toolbar/toolbar.js b/loleaflet/dist/toolbar/toolbar.js
index e986a78e..6e596511 100644
--- a/loleaflet/dist/toolbar/toolbar.js
+++ b/loleaflet/dist/toolbar/toolbar.js
@@ -1130,7 +1130,7 @@ map.on('commandstatechanged', function (e) {
 		else {
 
 			color = color.toString(16);
-			color = '#' + '0'.repeat(6 - color.length) + color;
+			color = '#' + Array(7 - color.length).join('0') + color;
 		}
 		div = L.DomUtil.get('fontcolorindicator');
 		if (div) {
@@ -1145,7 +1145,7 @@ map.on('commandstatechanged', function (e) {
 		}
 		else {
 			color = color.toString(16);
-			color = '#' + '0'.repeat(6 - color.length) + color;
+			color = '#' + Array(7 - color.length).join('0') + color;
 		}
 		div = L.DomUtil.get('backcolorindicator');
 		if (div) {


More information about the Libreoffice-commits mailing list