diff --git a/static/index.js b/static/index.js index adf2e2d..30ec432 100644 --- a/static/index.js +++ b/static/index.js @@ -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) {