Browse Source

Cannot add empty value

master^2
parent
commit
b626eb5fad
  1. 3
      site/js/todo.js

3
site/js/todo.js

@ -97,6 +97,9 @@ MainController.prototype.addTask = function(text) {
self.initialization();
}
MainController.prototype.addSomeTask = function() {
if ($('#addtasktextfield').val() == 'Add a task...') {
return false;
}
this.addTask( $('#addtasktextfield').val() );
}

Loading…
Cancel
Save