[Libreoffice-commits] online.git: loleaflet/src
Jan Holesovsky
kendy at collabora.com
Mon Apr 3 10:05:36 UTC 2017
loleaflet/src/layer/marker/Annotation.js | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit 6c25b36022a3ca31252e57775482af1fabac0fd3
Author: Jan Holesovsky <kendy at collabora.com>
Date: Mon Apr 3 12:04:50 2017 +0200
Re-introduce the Save button back to the comment creation.
Change-Id: I9e45051f2e867a0af8ab5aab2eb244d4f3449761
diff --git a/loleaflet/src/layer/marker/Annotation.js b/loleaflet/src/layer/marker/Annotation.js
index 72835031..a39d78f9 100644
--- a/loleaflet/src/layer/marker/Annotation.js
+++ b/loleaflet/src/layer/marker/Annotation.js
@@ -156,7 +156,8 @@ L.Annotation = L.Layer.extend({
this._nodeReplyText = L.DomUtil.create(tagTextArea, classTextArea, this._nodeReply);
buttons = L.DomUtil.create(tagDiv, empty, this._nodeModify);
- L.DomEvent.on(this._nodeModifyText, 'blur', this._onLostFocus, this);
+ L.DomEvent.on(this._nodeModifyText, 'blur', this._onSaveComment, this);
+ this._createButton(buttons, _(' Save '), this._onSaveComment);
this._createButton(buttons, cancel, this._onCancelClick);
buttons = L.DomUtil.create(tagDiv, empty, this._nodeReply);
this._createButton(buttons, _('Reply'), this._onReplyClick);
@@ -182,7 +183,7 @@ L.Annotation = L.Layer.extend({
this._map.fire('AnnotationCancel', {annotation: this});
},
- _onLostFocus: function (e) {
+ _onSaveComment: function (e) {
L.DomEvent.stopPropagation(e);
this._data.text = this._contentText.innerHTML = this._nodeModifyText.value;
this.show();
More information about the Libreoffice-commits
mailing list