 $addTaskInput.on 'keypress', (event) ->
   if event.charCode is 13
     value = $(this).val()
-    return false if value is ''
+    return false if !value
     $(this).val('')
     yastapp.addTask value
 
+    if currentStep is 1
+      stepTwo()

    "<div id=\"#{@identifier}\" style=\"display: none\">#{@generateInnerHtml()}</div>"

  generateInnerHtml : ->
    "<p>#{@toString()}</p>"

  generateEditHtml : ->
    "<input type=\"text\" value=\"#{@toString()}\" />"


    @context.on 'dblclick', "##{@identifier}", (event) ->
      newValue = prompt 'New value'
      self.update newValue

  toString : ->
    @task
