there IS no replace()
This commit is contained in:
parent
6db5e9c7c8
commit
b9eb1f16a7
@ -24,7 +24,7 @@ function new_task() {
|
||||
input.change(function() {
|
||||
check(data.task.id);
|
||||
});
|
||||
input.next().replace(" " + data.task.content);
|
||||
input.next().replaceWith(" " + data.task.content);
|
||||
$("#new-task").before(template);
|
||||
})
|
||||
.fail(function(request) {
|
||||
|
Loading…
Reference in New Issue
Block a user