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

Henry Castro hcastro at collabora.com
Sun Jul 3 14:48:06 UTC 2016


 loleaflet/dist/toolbar/toolbar.js |    7 -------
 loleaflet/src/control/Styles.js   |    8 --------
 2 files changed, 15 deletions(-)

New commits:
commit 1a6b102469b6ccacad879a40f91a240843892c74
Author: Henry Castro <hcastro at collabora.com>
Date:   Sun Jul 3 10:46:33 2016 -0400

    loleaflet: remove status bar item 'Signature'
    
    They always report the same value

diff --git a/loleaflet/dist/toolbar/toolbar.js b/loleaflet/dist/toolbar/toolbar.js
index 5a07699..7484b57 100644
--- a/loleaflet/dist/toolbar/toolbar.js
+++ b/loleaflet/dist/toolbar/toolbar.js
@@ -664,8 +664,6 @@ map.on('doclayerinit', function () {
 			{type: 'html',  id: 'StatusSelectionMode',  html: '<div id="StatusSelectionMode" style="padding: 5px 5px;">    &nbsp</div>' },
 			//{type: 'break', id:'break6'},
 			//{type: 'html',  id: 'ModifiedStatus',  html: '<div id="ModfiedStatus" style="padding: 5px 5px;">    &nbsp</div>' },
-			{type: 'break', id:'break7'},
-			{type: 'html',  id: 'Signature',  html: '<div id="Signature" style="padding: 5px 5px;">    &nbsp</div>' },
 			{type: 'break', id:'break8'},
 			{type: 'html',  id: 'StateTableCell',  html: '<div id="StateTableCell" style="padding: 5px 5px;">    &nbsp</div>' },
 			//{type: 'break', id:'break9'},
@@ -691,8 +689,6 @@ map.on('doclayerinit', function () {
 			{type: 'html',  id: 'SelectionMode',  html: '<div id="StatusSelectionMode" style="padding: 5px 5px;">    &nbsp</div>' },
 			//{type: 'break', id:'break7'},
 			//{type: 'html',  id: 'ModifiedStatus',  html: '<div id="ModfiedStatus" style="padding: 5px 5px;">    &nbsp</div>' },
-			{type: 'break', id:'break8'},
-			{type: 'html',  id: 'Signature',  html: '<div id="Signature" style="padding: 5px 5px;">    &nbsp</div>' },
 		])
 		statusbar.refresh();
 		break;
@@ -837,9 +833,6 @@ map.on('commandstatechanged', function (e) {
 		 commandName === '.uno:SelectionMode') {
 		$('#StatusSelectionMode').html(state ? L.Styles.selectionMode[state] : '    &nbsp');
 	}
-	else if (commandName === '.uno:Signature') {
-		$('#Signature').html(state ? L.Styles.signatureState[state] : '    &nbsp');
-	}
 	else if (commandName === '.uno:Position' ||
 		 commandName === '.uno:StateTableCell' ||
 		 commandName === '.uno:StatusBarFunc' ||
diff --git a/loleaflet/src/control/Styles.js b/loleaflet/src/control/Styles.js
index a7324b8..7cd3feb 100644
--- a/loleaflet/src/control/Styles.js
+++ b/loleaflet/src/control/Styles.js
@@ -329,12 +329,4 @@ L.Styles = {
 		'Adding selection',
 		'Block selection'
 	],
-
-	signatureState : {
-		'-1' : 'The document is not signed.',
-		'0'  : 'The document signature is OK.',
-		'1'  : 'The document signature does not match the document content',
-		'2'  : 'The document signature is OK, but the certificates could not be validated.',
-		'3'  : 'The document signature and the certificate are OK'
-	},
 };


More information about the Libreoffice-commits mailing list