[Libreoffice-commits] online.git: loleaflet/dist loleaflet/src
Jan Holesovsky
kendy at collabora.com
Fri Jan 5 12:50:36 UTC 2018
loleaflet/dist/toolbar/toolbar.js | 6 +++---
loleaflet/src/admin/AdminSocketAnalytics.js | 2 +-
loleaflet/src/control/Control.ColumnHeader.js | 2 +-
loleaflet/src/control/Control.DocumentRepair.js | 2 +-
loleaflet/src/control/Control.Menubar.js | 10 +++++-----
loleaflet/src/control/Control.RowHeader.js | 2 +-
loleaflet/src/control/Control.Tabs.js | 2 +-
7 files changed, 13 insertions(+), 13 deletions(-)
New commits:
commit 0ed1840aaa365b3228df97f9f33c8a8b78eaffca
Author: Jan Holesovsky <kendy at collabora.com>
Date: Fri Jan 5 13:49:50 2018 +0100
Fix various JS warnings.
Change-Id: I6042781141eed9fbbdb452337e7bb0b18803fa1b
diff --git a/loleaflet/dist/toolbar/toolbar.js b/loleaflet/dist/toolbar/toolbar.js
index 59fc53af..263bace4 100644
--- a/loleaflet/dist/toolbar/toolbar.js
+++ b/loleaflet/dist/toolbar/toolbar.js
@@ -2,7 +2,7 @@
* LibreOffice Online toolbar
*/
-/* global $ map closebutton w2ui w2utils vex _ */
+/* global $ map closebutton w2ui w2utils vex _ _UNO */
/* exported onUseritemClicked editorUpdate */
var mobileWidth = 768;
@@ -1088,8 +1088,8 @@ map.on('doclayerinit', function () {
{ func: '32', text: _('Minimum'), icon: ''},
{ func: '512', text: _('Sum'), icon: 'selected'},
{ func: '8192', text: _('Selection count'), icon: ''},
- { func: '1', text: _('None'), icon: ''},
- ]},
+ { func: '1', text: _('None'), icon: ''}
+ ]}
]);
// Remove irrelevant toolbars
diff --git a/loleaflet/src/admin/AdminSocketAnalytics.js b/loleaflet/src/admin/AdminSocketAnalytics.js
index 34decef0..8af70e02 100644
--- a/loleaflet/src/admin/AdminSocketAnalytics.js
+++ b/loleaflet/src/admin/AdminSocketAnalytics.js
@@ -3,7 +3,7 @@
containing various graphs to show to the user on specified interval
*/
-/* global d3 Util AdminSocketBase $ Admin */
+/* global _ d3 Util AdminSocketBase $ Admin */
var AdminSocketAnalytics = AdminSocketBase.extend({
constructor: function(host) {
this.base(host);
diff --git a/loleaflet/src/control/Control.ColumnHeader.js b/loleaflet/src/control/Control.ColumnHeader.js
index 690eac2c..31ac194a 100644
--- a/loleaflet/src/control/Control.ColumnHeader.js
+++ b/loleaflet/src/control/Control.ColumnHeader.js
@@ -2,7 +2,7 @@
* Control.ColumnHeader
*/
-/* global $ _ */
+/* global $ _UNO */
L.Control.ColumnHeader = L.Control.Header.extend({
options: {
cursor: 'col-resize'
diff --git a/loleaflet/src/control/Control.DocumentRepair.js b/loleaflet/src/control/Control.DocumentRepair.js
index 0d4b16f8..88401d21 100644
--- a/loleaflet/src/control/Control.DocumentRepair.js
+++ b/loleaflet/src/control/Control.DocumentRepair.js
@@ -1,7 +1,7 @@
/*
* L.Control.DocumentRepair.
*/
-/* global $ _ */
+/* global $ _ _UNO */
L.Control.DocumentRepair = L.Control.extend({
options: {
position: 'topright'
diff --git a/loleaflet/src/control/Control.Menubar.js b/loleaflet/src/control/Control.Menubar.js
index b6c03cdf..8ef8ad31 100644
--- a/loleaflet/src/control/Control.Menubar.js
+++ b/loleaflet/src/control/Control.Menubar.js
@@ -11,7 +11,7 @@ L.Control.Menubar = L.Control.extend({
{name: _UNO('.uno:EditMenu'), disabled: true},
{name: _UNO('.uno:ViewMenu'), disabled: true},
{name: _UNO('.uno:InsertMenu'), disabled: true},
- {name: _UNO('.uno:ToolsMenu'), disabled: true},
+ {name: _UNO('.uno:ToolsMenu'), disabled: true}
],
text: [
{name: _UNO('.uno:PickList', 'text'), id: 'file', type: 'menu', menu: [
@@ -47,7 +47,7 @@ L.Control.Menubar = L.Control.extend({
{uno: '.uno:PreviousTrackedChange'},
{uno: '.uno:NextTrackedChange'}
]},
- {uno: '.uno:EditStyle'},
+ {uno: '.uno:EditStyle'}
]},
{name: _UNO('.uno:ViewMenu', 'text'), id: 'view', type: 'menu', menu: [
{name: _UNO('.uno:FullScreen', 'text'), id: 'fullscreen', type: 'action'},
@@ -56,7 +56,7 @@ L.Control.Menubar = L.Control.extend({
{name: _UNO('.uno:ZoomMinus', 'text'), id: 'zoomout', type: 'action'},
{name: _('Reset zoom'), id: 'zoomreset', type: 'action'},
{type: 'separator'},
- {uno: '.uno:ControlCodes'},
+ {uno: '.uno:ControlCodes'}
]
},
{name: _UNO('.uno:InsertMenu', 'text'), type: 'menu', menu: [
@@ -198,7 +198,7 @@ L.Control.Menubar = L.Control.extend({
{name: _UNO('.uno:SetLanguageParagraphMenu', 'text'), type: 'menu', menu: [
{name: _('None (Do not check spelling)'), id: 'noneparagraph', uno: '.uno:LanguageStatus?Language:string=Paragraph_LANGUAGE_NONE'}]},
{name: _UNO('.uno:SetLanguageAllTextMenu', 'text'), type: 'menu', menu: [
- {name: _('None (Do not check spelling)'), id: 'nonelanguage', uno: '.uno:LanguageStatus?Language:string=Default_LANGUAGE_NONE'}]},
+ {name: _('None (Do not check spelling)'), id: 'nonelanguage', uno: '.uno:LanguageStatus?Language:string=Default_LANGUAGE_NONE'}]}
]},
{uno: '.uno:WordCountDialog'}
]},
@@ -251,7 +251,7 @@ L.Control.Menubar = L.Control.extend({
{uno: '.uno:TransformDialog'},
{uno: '.uno:FormatLine'},
{uno: '.uno:FormatArea'}
- ]},
+ ]}
]},
{name: _UNO('.uno:TableMenu', 'text'/*HACK should be 'presentation', but not in xcu*/), type: 'menu', menu: [
{name: _UNO('.uno:TableInsertMenu', 'text'/*HACK should be 'presentation', but not in xcu*/), type: 'menu', menu: [
diff --git a/loleaflet/src/control/Control.RowHeader.js b/loleaflet/src/control/Control.RowHeader.js
index 2782ae07..1284cdac 100644
--- a/loleaflet/src/control/Control.RowHeader.js
+++ b/loleaflet/src/control/Control.RowHeader.js
@@ -2,7 +2,7 @@
* L.Control.RowHeader
*/
-/* global $ _ */
+/* global $ _UNO */
L.Control.RowHeader = L.Control.Header.extend({
options: {
cursor: 'row-resize'
diff --git a/loleaflet/src/control/Control.Tabs.js b/loleaflet/src/control/Control.Tabs.js
index 6429937e..a2095457 100644
--- a/loleaflet/src/control/Control.Tabs.js
+++ b/loleaflet/src/control/Control.Tabs.js
@@ -2,7 +2,7 @@
* L.Control.Tabs is used to switch sheets in Calc
*/
-/* global $ vex _ map */
+/* global $ vex _ _UNO map */
L.Control.Tabs = L.Control.extend({
onAdd: function(map) {
map.on('updatepermission', this._onUpdatePermission, this);
More information about the Libreoffice-commits
mailing list