Changes

Jump to navigation Jump to search
no edit summary
Line 13: Line 13:  
 
 
input.on( 'enter', function () {
 
input.on( 'enter', function () {
// Check for duplicates and prevent empty input
+
// Check for duplicates and prevent empty input
if ( list.findItemFromData( input.getValue() ) ||
  −
input.getValue() === '' ) {
  −
input.$element.addClass( 'todo-error' );
  −
return;
  −
}
  −
   
} );
 
} );
  

Navigation menu