       @el.addClass("expanded animout")
       @el.draggable({ disabled: true })
 
+
+  # ----------------------------------------------------------------------------
+  # PRIORITIES
+  # ----------------------------------------------------------------------------
+
+  prioritize: ->
+    # Change the priority
+    if @task.priority is 3
+      @task.updateAttribute "priority", 1
+    else
+      @task.updateAttribute "priority", @task.priority + 1
+
+    @el.removeClass("p0 p1 p2 p3").addClass("p" + @task.priority)
+
+
+  # ----------------------------------------------------------------------------
+  # NAME
+  # ----------------------------------------------------------------------------
+
   endEdit: ->
     @el.draggable({ disabled: false })
     val = @name.text()

    if e.which is ENTER_KEY
      e.preventDefault()
      @name.blur()

  notesEdit: =>
    if @notes.text() is "Notes" then @notes.text("")

  remove: ->
    @task.destroy()

  toggleStatus: ->
    @task.completed = !@task.completed
    @task.save()
