[Libreoffice-commits] online.git: loleaflet/js
Jan Holesovsky
kendy at collabora.com
Thu Jun 7 11:21:37 UTC 2018
loleaflet/js/toolbar.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit ed3739c8f1712562aa0bc43740b3a68b0e0e12c0
Author: Jan Holesovsky <kendy at collabora.com>
Date: Thu Jun 7 13:20:33 2018 +0200
Don't use colons here.
Change-Id: If838a44d766ab70ac5c7efc904eec37a8131554c
diff --git a/loleaflet/js/toolbar.js b/loleaflet/js/toolbar.js
index b9fdee9aa..65f2c3b96 100644
--- a/loleaflet/js/toolbar.js
+++ b/loleaflet/js/toolbar.js
@@ -208,9 +208,9 @@ function onClick(e, id, item, subItem) {
else if (id === 'lastrecord') {
$('#spreadsheet-tab-scroll').scrollLeft($('#spreadsheet-tab-scroll').scrollLeft() + 120);
}
- else if (id.startsWith('menu:wrap:wrap-'))
+ else if (id.startsWith('menu-wrap:wrap-'))
{
- var wrapType = id.substring('menu:wrap:wrap-'.length);
+ var wrapType = id.substring('menu-wrap:wrap-'.length);
map.toggleCommandState(wrapType);
}
else if (id === 'insertgraphic') {
@@ -519,7 +519,7 @@ function createToolbar() {
$('#toolbar-up').w2toolbar({
name: 'toolbar-up',
items: [
- {type: 'menu', id: 'writer:menu:wrap', caption: _('Textwrap'), items: [
+ {type: 'menu', id: 'menu-wrap', caption: _('Textwrap'), items: [
{ text: _('No wrap'), id: 'wrap-WrapOff' },
{ text: _('Page wrap'), id: 'wrap-WrapOn' },
{ text: _('Wrap anchor only'), id: 'wrap-WrapAnchorOnly' },
More information about the Libreoffice-commits
mailing list