[Libreoffice-commits] online.git: loleaflet/src
Szymon Kłos (via logerrit)
logerrit at kemper.freedesktop.org
Mon Oct 28 19:02:07 UTC 2019
loleaflet/src/control/Control.AlertDialog.js | 20 +++++++++++---------
1 file changed, 11 insertions(+), 9 deletions(-)
New commits:
commit 2420c8bdbea699f6401fd66ae09dea3032e1711e
Author: Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Wed Jun 5 21:08:36 2019 +0200
Commit: Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Mon Oct 28 20:01:24 2019 +0100
Don't show edit link button in Impress
In impress it is needed to select full content of a
link to be able to edit it using hyperlink dialog.
Hide edit button for now to not show empty dialog.
Change-Id: If782bef66cbdaedc414dcf65df7c484be4343a5e
diff --git a/loleaflet/src/control/Control.AlertDialog.js b/loleaflet/src/control/Control.AlertDialog.js
index d0f72e988..a1665eb08 100644
--- a/loleaflet/src/control/Control.AlertDialog.js
+++ b/loleaflet/src/control/Control.AlertDialog.js
@@ -49,15 +49,17 @@ L.Control.AlertDialog = L.Control.extend({
});
}
- buttonsList.push({
- text: _('Edit'),
- type: 'button',
- className: 'vex-dialog-button-secondary',
- click: function editClick () {
- vex.closeAll();
- e.map.showHyperlinkDialog();
- }
- });
+ if (this._map.getDocType() != 'presentation') {
+ buttonsList.push({
+ text: _('Edit'),
+ type: 'button',
+ className: 'vex-dialog-button-secondary',
+ click: function editClick () {
+ vex.closeAll();
+ e.map.showHyperlinkDialog();
+ }
+ });
+ }
vex.dialog.open({
message: messageText,
More information about the Libreoffice-commits
mailing list