Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FUSS Online Collaboration Suite
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FUSS Team
FUSS Online Collaboration Suite
Commits
07607863
Commit
07607863
authored
8 years ago
by
Pranav Kant
Browse files
Options
Downloads
Patches
Plain Diff
loleaflet: Commit reply comment when focus lost
Change-Id: I0a47c6b74afed31264aec06ab654063fb5beaca8
parent
759b0945
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
loleaflet/src/layer/marker/Annotation.js
+7
-0
7 additions, 0 deletions
loleaflet/src/layer/marker/Annotation.js
with
7 additions
and
0 deletions
loleaflet/src/layer/marker/Annotation.js
+
7
−
0
View file @
07607863
...
...
@@ -191,6 +191,7 @@ L.Annotation = L.Layer.extend({
buttons
=
L
.
DomUtil
.
create
(
tagDiv
,
empty
,
this
.
_nodeModify
);
L
.
DomEvent
.
on
(
this
.
_nodeModifyText
,
'
blur
'
,
this
.
_onLostFocus
,
this
);
L
.
DomEvent
.
on
(
this
.
_nodeReplyText
,
'
blur
'
,
this
.
_onLostFocusReply
,
this
);
this
.
_createButton
(
buttons
,
_
(
'
Save
'
),
this
.
_onSaveComment
);
this
.
_createButton
(
buttons
,
cancel
,
this
.
_onCancelClick
);
buttons
=
L
.
DomUtil
.
create
(
tagDiv
,
empty
,
this
.
_nodeReply
);
...
...
@@ -231,6 +232,12 @@ L.Annotation = L.Layer.extend({
}
},
_onLostFocusReply
:
function
(
e
)
{
if
(
this
.
_nodeReplyText
.
value
!==
''
)
{
this
.
_onReplyClick
(
e
);
}
},
_onMouseClick
:
function
(
e
)
{
var
target
=
e
.
target
||
e
.
srcElement
;
L
.
DomEvent
.
stopPropagation
(
e
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment