don't create empty todo entries

pull/1/head
ansuz 7 years ago
parent e84edb2c2b
commit 69eaccbdef

@ -124,6 +124,10 @@ define([
var addTask = function () {
var $input = $iframe.find('#newTodoName');
// if the input is empty after removing leading and trailing spaces
// don't create a new entry
if (!$input.val().trim()) { return; }
var obj = {
"state": 0,
"task": $input.val(),

Loading…
Cancel
Save