[Libreoffice-commits] online.git: loleaflet/dist
Pranav Kant
pranavk at collabora.com
Fri May 13 11:38:47 UTC 2016
loleaflet/dist/toolbar/toolbar.js | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit 37145f9969cc5f109ff3e9ab77d0e0b9fbdf2bb1
Author: Pranav Kant <pranavk at collabora.com>
Date: Fri May 13 17:07:08 2016 +0530
loleaflet: command was an undefined variable
... which leads to a JS error making font size list box not
workable sometimes.
Change-Id: I7452960c05a655ebdf48e3170987c29a37a7c2a6
diff --git a/loleaflet/dist/toolbar/toolbar.js b/loleaflet/dist/toolbar/toolbar.js
index 14756d2..6b89303 100644
--- a/loleaflet/dist/toolbar/toolbar.js
+++ b/loleaflet/dist/toolbar/toolbar.js
@@ -497,10 +497,11 @@ function onFontSelect (e) {
function onFontSizeSelect (e) {
var size = e.target.value;
+ var command = {};
$(e.target).find('option[data-select2-tag]').removeAttr('data-select2-tag');
map.applyFontSize(size);
- fontcolor = map.getDocType() === 'text' ? 'FontColor' : 'Color';
- command[fontcolor] = {};
+ fontcolor = map.getDocType() === 'text' ? 'FontColor' : 'Color';
+ command[fontcolor] = {};
map.focus();
}
More information about the Libreoffice-commits
mailing list