[Libreoffice-commits] online.git: loleaflet/src
Marco Cecchetti
marco.cecchetti at collabora.com
Tue May 2 13:04:07 UTC 2017
loleaflet/src/layer/tile/TileLayer.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 7aeb66be8853bd347e623687fd6c699fa0268cc3
Author: Marco Cecchetti <marco.cecchetti at collabora.com>
Date: Wed Apr 26 11:38:27 2017 +0200
loleaflet: Calc, Impress: should not show Reply entry in annotation menu
There is no `reply` support in Desktop for Calc and Impress comments.
Change-Id: I827ae99148cf8f65446e23e13e2588ce0ced788e
Reviewed-on: https://gerrit.libreoffice.org/36979
Reviewed-by: pranavk <pranavk at collabora.co.uk>
Tested-by: pranavk <pranavk at collabora.co.uk>
diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js
index ee9408f8..0d2bb93a 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -184,8 +184,8 @@ L.TileLayer = L.GridLayer.extend({
that.onAnnotationModify.call(that, options.$trigger.get(0).annotation);
}
},
- reply: {
- name:_('Reply'),
+ reply: (this._docType !== 'text') ? undefined : {
+ name: _('Reply'),
callback: function (key, options) {
that.onAnnotationReply.call(that, options.$trigger.get(0).annotation);
}
More information about the Libreoffice-commits
mailing list