     # Make notes editable
     'focus .notes': 'notesEdit'
     'blur .notes': 'notesSave'
+    'change .date': 'datesSave'
 
 
   constructor: ->

        $("body").append("<div class=\"helper\">#{ @task.name }</div>")
        $(".helper")
    @date.datepicker()
    @

  update: (task) =>

      @task.updateAttribute "notes", text

  # ----------------------------------------------------------------------------
  # DATES
  # ----------------------------------------------------------------------------
  datesSave: =>
    @task.updateAttribute "date", new Date(@date.val()).getTime()

  # ----------------------------------------------------------------------------
  # TAGS
  # ----------------------------------------------------------------------------

