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

New commits:
commit 33a562515bb1ce425caea4ea9383ddff2a34af2e
Author: Aron Budea <aron.bu...@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 <hcas...@collabora.com>
    Tested-by: Henry Castro <hcas...@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) {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to