Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
25a65b77
Commit
25a65b77
authored
Dec 16, 2014
by
Marc Duez
Browse files
list.js : debug -> let some times to user to save change before cancelling editName
parent
610a2390
Changes
1
Hide whitespace changes
Inline
Side-by-side
browser/js/list.js
View file @
25a65b77
...
...
@@ -464,7 +464,7 @@ List.prototype = {
.
click
();
}
$
(
input
).
focusout
(
function
()
{
m
.
update
()
setTimeout
(
function
(){
m
.
update
()
},
500
)
})
divParent
.
appendChild
(
input
);
divParent
.
onclick
=
""
;
...
...
@@ -473,7 +473,9 @@ List.prototype = {
a
.
className
=
"
button
"
;
a
.
appendChild
(
document
.
createTextNode
(
"
save
"
));
a
.
id
=
"
btnSave
"
;
a
.
onclick
=
function
()
{
a
.
onclick
=
function
(
event
)
{
event
.
preventDefault
()
event
.
stopPropagation
()
var
newName
=
document
.
getElementById
(
"
new_name
"
)
.
value
;
self
.
m
.
clone
(
cloneID
).
changeName
(
newName
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment