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

Henry Castro hcastro at collabora.com
Wed Jul 13 18:27:46 UTC 2016


 loleaflet/dist/toolbar/toolbar.js |   13 -------------
 1 file changed, 13 deletions(-)

New commits:
commit 7fd9d334af78a5fb0bad7c746080af558ff77365
Author: Henry Castro <hcastro at collabora.com>
Date:   Wed Jul 13 14:26:54 2016 -0400

    loleaflet: cleanup unused statusbar items

diff --git a/loleaflet/dist/toolbar/toolbar.js b/loleaflet/dist/toolbar/toolbar.js
index bf53ced..ea39584 100644
--- a/loleaflet/dist/toolbar/toolbar.js
+++ b/loleaflet/dist/toolbar/toolbar.js
@@ -733,10 +733,6 @@ map.on('doclayerinit', function () {
 		statusbar.insert('left', [
 			{type: 'break', id:'break1'},
 			{type: 'html',  id: 'PageStatus',  html: '<div id="PageStatus" class="loleaflet-font" style="padding: 5px 5px;">    &nbsp</div>' },
-			{type: 'break', id:'break2'},
-			{type: 'html',  id: 'LayoutStatus',  html: '<div id="LayoutStatus" class="loleaflet-font" style="padding: 5px 5px;">    &nbsp</div>' },
-			{type: 'break', id:'break3'},
-			{type: 'html',  id: 'Context',  html: '<div id="Context" class="loleaflet-font" style="padding: 5px 5px;">    &nbsp</div>' },
 		]);
 		statusbar.refresh();
 		break;
@@ -863,9 +859,6 @@ map.on('commandstatechanged', function (e) {
 		state = toLocalePattern('$1 rows, $2 columns selected', '(\\d+) rows, (\\d+) columns selected', state, '$1', '$2');
 		$('#RowColSelCount').html(state ? state : '    &nbsp');
 	}
-	else if (commandName === '.uno:StatusPageStyle') {
-		$('#StatusPageStyle').html(state ? state : '    &nbsp');
-	}
 	else if (commandName === '.uno:InsertMode') {
 		$('#InsertMode').html(state ? L.Styles.insertMode[state].toLocaleString() : '    &nbsp');
 	}
@@ -893,12 +886,6 @@ map.on('commandstatechanged', function (e) {
 		state = toLocalePattern('Slide %1 of %2', 'Slide (\\d+) of (\\d+)', state, '%1', '%2');
 		$('#PageStatus').html(state ? state : '    &nbsp');
 	}
-	else if (commandName === '.uno:LayoutStatus') {
-		$('#LayoutStatus').html(state ? state : '    &nbsp');
-	}
-	else if (commandName === '.uno:Context') {
-		$('#Context').html(state ? state : '    &nbsp');
-	}
 	else if (commandName === '.uno:WrapText' ||
 		 commandName === '.uno:ToggleMergeCells' ||
 		 commandName === '.uno:NumberFormatCurrency' ||


More information about the Libreoffice-commits mailing list