 Template.assignment_item.events
     "click .check": ->
         Offline.smart.assignments().update this._id, $set: done: !this.done
-        Offline.save()
 
     "click .destroy": ->
         Offline.smart.assignments().remove(this._id)
-        Offline.save()
 
     "dblclick .assignment-text": (evt, tmpl) ->
         Session.set "editing_itemname", this._id

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

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



Template.assignment_item.editing = -> Session.equals("editing_itemname", this._id)

Template.assignment_item.color_class = ->
    if @done
        return "list-group-item-success"
