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

Ashod Nakashian ashod.nakashian at collabora.co.uk
Fri Aug 26 12:48:06 UTC 2016


 loleaflet/src/control/Control.Menubar.js |    5 ++++-
 loleaflet/src/control/Toolbar.js         |    6 ++++++
 2 files changed, 10 insertions(+), 1 deletion(-)

New commits:
commit 78d4c7706deae727272ce28867c98418925838cf
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date:   Wed Aug 24 18:23:04 2016 -0400

    loleaflet: Repair command and dialog handler
    
    Change-Id: I68853b2d4ec269c7f3d275f6bb7c192bd8ea41d7
    Reviewed-on: https://gerrit.libreoffice.org/28408
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at gmail.com>

diff --git a/loleaflet/src/control/Control.Menubar.js b/loleaflet/src/control/Control.Menubar.js
index 3cd011e..d10cb5a 100644
--- a/loleaflet/src/control/Control.Menubar.js
+++ b/loleaflet/src/control/Control.Menubar.js
@@ -15,7 +15,8 @@ L.Control.Menubar = L.Control.extend({
 												   {name: _('Microsoft Word 2003 (.doc)'), id: 'downloadas-doc', type: 'action'},
 												   {name: _('Microsoft Word (.docx)'), id: 'downloadas-docx', type: 'action'}]}]
 			},
-			{name: _('Edit'), type: 'menu', menu: [{name: _('Undo'), type: 'unocommand', uno: '.uno:Undo'},
+			{name: _('Edit'), type: 'menu', menu: [{name: _('Repair'), id: 'repair',  type: 'action'},
+												{name: _('Undo'), type: 'unocommand', uno: '.uno:Undo'},
 												{name: _('Redo'), type: 'unocommand', uno: '.uno:Redo'},
 												{type: 'separator'},
 												{name: _('Cut'), type: 'unocommand', uno: '.uno:Cut'},
@@ -316,6 +317,8 @@ L.Control.Menubar = L.Control.extend({
 			if (window.top !== window.self) {
 				window.parent.postMessage('rev-history', '*');
 			}
+		} else if (id === 'repair') {
+			map.showRepairDialog();
 		}
 	},
 
diff --git a/loleaflet/src/control/Toolbar.js b/loleaflet/src/control/Toolbar.js
index 54a1d95..bbe3d86 100644
--- a/loleaflet/src/control/Toolbar.js
+++ b/loleaflet/src/control/Toolbar.js
@@ -230,5 +230,11 @@ L.Map.include({
 				});
 			}
 		});
+	},
+
+	showRepairDialog: function() {
+		vex.open({
+		});
 	}
+
 });


More information about the Libreoffice-commits mailing list