[Libreoffice-commits] online.git: loleaflet/dist

Andras Timar andras.timar at collabora.com
Mon May 23 10:49:01 UTC 2016


 loleaflet/dist/toolbar/toolbar.js |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit d173a21b282ac306cec4027a65c855162b494171
Author: Andras Timar <andras.timar at collabora.com>
Date:   Mon May 23 12:48:38 2016 +0200

    loleaflet: hide 'Insert Table' for spreadsheets, get it right finally

diff --git a/loleaflet/dist/toolbar/toolbar.js b/loleaflet/dist/toolbar/toolbar.js
index 5e393be..9e6320f 100644
--- a/loleaflet/dist/toolbar/toolbar.js
+++ b/loleaflet/dist/toolbar/toolbar.js
@@ -533,9 +533,11 @@ map.on('updatepermission', function (e) {
 		else if (docType === 'drawing') {
 			toolbar.hide('annotation');
 		}
+		else if (docType === 'spreadsheet') {
+			toolbar.hide('inserttable');
+		}
 		else if (docType !== 'spreadsheet') {
 			toolbar.hide('annotation');
-			toolbar.hide('inserttable');
 		}
 	}
 });


More information about the Libreoffice-commits mailing list