mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Fixed double request when editing
This commit is contained in:
parent
263e7cd704
commit
f3f7dbd8ef
@ -29,7 +29,7 @@ function editEntity() {
|
||||
namefield.addEventListener('keypress',function(e){
|
||||
if (e.which === 13) {
|
||||
e.preventDefault();
|
||||
doneEditing();
|
||||
namefield.blur(); // this leads to below
|
||||
}
|
||||
|
||||
})
|
||||
@ -41,7 +41,7 @@ function editEntity() {
|
||||
|
||||
})
|
||||
|
||||
// manually clicking away
|
||||
// manually clicking away OR enter
|
||||
namefield.addEventListener('blur',function(e){
|
||||
doneEditing();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user