 
 Template.assignment_item.editing = -> Session.equals("editing_itemname", this._id)
 
-Template.assignment_item.editing_due_date = -> Session.equals("editing_due_date", @_id)
-
 Template.assignment_item.color_class = ->
     if @done
         return "list-group-item-success"

                newAssignment.text = dueDateMatch[1]
                newAssignment.due = parsedDate
        Offline.smart.assignments().insert newAssignment
        Offline.save()
        evt.target.value = ""
    dirty: (text, evt) ->
        $("#new-assignment").parent().removeClass("has-error")

        activateInput(tmpl.find("#assignment-input"))

    "dblclick abbr": (evt, tmpl) ->
        Session.set "editing_itemname", @_id
        Deps.flush()
        activateInput(tmpl.find("#due-date-input"))

