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

Andras Timar andras.timar at collabora.com
Tue Jan 2 14:10:29 UTC 2018


 loleaflet/src/control/Control.DocumentRepair.js |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

New commits:
commit f8bf2c28608c139279aaa484603da8cc539ff948
Author: Andras Timar <andras.timar at collabora.com>
Date:   Tue Jan 2 13:00:09 2018 +0100

    l10n: localize 'Undo' and 'Redo' labels on Document Repair dialog
    
    Change-Id: Ibd4236f85a6db92b7d6456f6f22115b35079da83
    Reviewed-on: https://gerrit.libreoffice.org/47252
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>
    Tested-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/loleaflet/src/control/Control.DocumentRepair.js b/loleaflet/src/control/Control.DocumentRepair.js
index f425db7f..bbd3b20b 100644
--- a/loleaflet/src/control/Control.DocumentRepair.js
+++ b/loleaflet/src/control/Control.DocumentRepair.js
@@ -37,6 +37,9 @@ L.Control.DocumentRepair = L.Control.extend({
 		var tbody = this._tbody = L.DomUtil.create('tbody', '', table);
 		var tr = L.DomUtil.create('tr', '', tbody);
 		var th = L.DomUtil.create('th', '', tr);
+		L.DomUtil.setStyle(th, 'display', 'none');
+		th.appendChild(document.createTextNode(''));
+		th = L.DomUtil.create('th', '', tr);
 		th.appendChild(document.createTextNode(_('Type')));
 		th = L.DomUtil.create('th', '', tr);
 		th.appendChild(document.createTextNode(_('Index')));
@@ -59,8 +62,11 @@ L.Control.DocumentRepair = L.Control.extend({
 	createAction: function (type, index, comment, viewId, dateTime) {
 		var row = L.DomUtil.create('tr', '', this._tbody);
 		var td = L.DomUtil.create('td', '', row);
+		L.DomUtil.setStyle(td, 'display', 'none');
 		td.appendChild(document.createTextNode(type));
 		td = L.DomUtil.create('td', '', row);
+		td.appendChild(document.createTextNode(_UNO('.uno:'+type)));
+		td = L.DomUtil.create('td', '', row);
 		td.appendChild(document.createTextNode(index));
 		td = L.DomUtil.create('td', '', row);
 		td.appendChild(document.createTextNode(comment));
@@ -125,7 +131,7 @@ L.Control.DocumentRepair = L.Control.extend({
 	_onJumpClick: function (e) {
 		if (this._selected) {
 			var action = this._selected.childNodes[0].innerHTML;
-			var index = parseInt(this._selected.childNodes[1].innerHTML);
+			var index = parseInt(this._selected.childNodes[2].innerHTML);
 			var command = {
 				Repair: {
 					type: 'boolean',


More information about the Libreoffice-commits mailing list