Commit 25a65b77 authored by Marc Duez's avatar Marc Duez
Browse files

list.js : debug -> let some times to user to save change before cancelling editName

parent 610a2390
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment