[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-3' - loleaflet/dist

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Aug 16 18:59:38 UTC 2018


 loleaflet/dist/toolbar/toolbar.js |   19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)

New commits:
commit 289a490300145156ffb9e152c158f2d2ce7736dd
Author:     Andras Timar <andras.timar at collabora.com>
AuthorDate: Mon Aug 6 17:43:59 2018 +0200
Commit:     Jan Holesovsky <kendy at collabora.com>
CommitDate: Thu Aug 16 20:59:20 2018 +0200

    loleaflet: fix Calc status bar functions
    
    Change-Id: I11eced357e000bafa6f49f605d0766cc4df49720
    Reviewed-on: https://gerrit.libreoffice.org/58653
    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 c6925cfe3..2b921bd2d 100644
--- a/loleaflet/dist/toolbar/toolbar.js
+++ b/loleaflet/dist/toolbar/toolbar.js
@@ -70,16 +70,6 @@ function onClick(e, id, item, subItem) {
 		toolbar = w2ui['presentation-toolbar'];
 		item = toolbar.get(id);
 	}
-	else if (item && subItem)
-	{
-		var command = {
-			'StatusBarFunc': {
-				type: 'unsigned short',
-				value: subItem.func
-			}
-		};
-		map.sendUnoCommand('.uno:StatusBarFunc', command);
-	}
 	else {
 		throw new Error('unknown id: ' + id);
 	}
@@ -203,6 +193,15 @@ function onClick(e, id, item, subItem) {
 		w2ui['formulabar'].hide('acceptformula', 'cancelformula');
 		w2ui['formulabar'].show('sum', 'function');
 	}
+	else if (id.startsWith('StateTableCellMenu') && subItem) {
+		var command = {
+			'StatusBarFunc': {
+				type: 'unsigned short',
+				value: subItem.func
+			}
+		};
+		map.sendUnoCommand('.uno:StatusBarFunc', command);
+	}
 }
 
 function setBorders(left, right, bottom, top, horiz, vert) {


More information about the Libreoffice-commits mailing list