Commit 0b22b363 authored by Pascal Hartig's avatar Pascal Hartig

Serenade: trim on edit (#818)

parent ded3e20d
......@@ -56,6 +56,7 @@ class TodoController
edited: ->
if @todo.title.trim()
@todo.title = @todo.title.trim()
@todo.edit = false if @todo.edit
else
@todo.remove()
......
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