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

Pranam Lashkari (via logerrit) logerrit at kemper.freedesktop.org
Mon Jul 27 22:39:37 UTC 2020


 loleaflet/src/layer/marker/Annotation.js |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 87d9769187a2f39ee1044199e8c195c6e38ee4a4
Author:     Pranam Lashkari <lpranam at collabora.com>
AuthorDate: Thu Jul 16 01:49:58 2020 +0530
Commit:     Henry Castro <hcastro at collabora.com>
CommitDate: Tue Jul 28 00:39:18 2020 +0200

    tdf#132125 leaflet: setting annotations active and inactive on focus
    
    adding these classes help in pasting text in comments in calc and impress
    
    Change-Id: Id94e6017d1db5f024f4ebfa287051c799c225ec9
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98860
    Tested-by: Jenkins
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Henry Castro <hcastro at collabora.com>

diff --git a/loleaflet/src/layer/marker/Annotation.js b/loleaflet/src/layer/marker/Annotation.js
index f60b7b680..b8d24a482 100644
--- a/loleaflet/src/layer/marker/Annotation.js
+++ b/loleaflet/src/layer/marker/Annotation.js
@@ -145,6 +145,7 @@ L.Annotation = L.Layer.extend({
 	},
 
 	focus: function () {
+		$(this._container).addClass('annotation-active');
 		this._nodeModifyText.focus();
 		this._nodeReplyText.focus();
 	},
@@ -313,6 +314,7 @@ L.Annotation = L.Layer.extend({
 	},
 
 	_onLostFocus: function (e) {
+		$(this._container).removeClass('annotation-active');
 		if (this._contentText.origText !== this._nodeModifyText.value) {
 			this._onSaveComment(e);
 		}


More information about the Libreoffice-commits mailing list