[Libreoffice-commits] online.git: loleaflet/dist
YiiChang Yen
sadwind.yan at gmail.com
Fri Sep 8 09:22:35 UTC 2017
loleaflet/dist/toolbar/toolbar.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 488c2e98f3bcf0812df45df5651ced0891020fac
Author: YiiChang Yen <sadwind.yan at gmail.com>
Date: Mon Sep 4 14:00:05 2017 +0800
loleaflet: Sortting font-select list localelly
Change-Id: I6ebe7a30e0d47776986aa67b44de7b2bc1d25fca
Reviewed-on: https://gerrit.libreoffice.org/41873
Reviewed-by: Jan Holesovsky <kendy at collabora.com>
Tested-by: Jan Holesovsky <kendy at collabora.com>
diff --git a/loleaflet/dist/toolbar/toolbar.js b/loleaflet/dist/toolbar/toolbar.js
index 6810034a..a2c5065e 100644
--- a/loleaflet/dist/toolbar/toolbar.js
+++ b/loleaflet/dist/toolbar/toolbar.js
@@ -1384,7 +1384,9 @@ function updateCommandValues() {
data = data.concat(Object.keys(commandValues));
}
$('.fonts-select').select2({
- data: data,
+ data: data.sort(function (a, b) { // also sort(localely)
+ return a.localeCompare(b);
+ }),
placeholder: _('Font')
});
$('.fonts-select').on('select2:select', onFontSelect);
More information about the Libreoffice-commits
mailing list