Working on task kanban

This commit is contained in:
Hillel Coren 2017-12-18 13:16:16 +02:00
parent e69b97f31e
commit 359797c987

View File

@ -252,8 +252,12 @@
}
self.saveNewTask = function() {
var description = self.new_task.description();
if (! description) {
return false;
}
var task = new TaskModel({
description: self.new_task.description()
description: description
})
self.tasks.push(task);
self.new_task.reset();
@ -291,6 +295,10 @@
}
self.endTaskEdit = function() {
var description = self.description();
if (! description && ! self.is_blank()) {
return false;
}
self.is_editing_task(false);
}