anchor.diff:  
     # click on task -> change color
     $('#tasks > .task').unbind('click')
  -  $('#tasks > .task').bind('click', () ->
  +  $('#tasks > .task').bind('click', (event) ->
       if $('.color-focus').length == 1
         $(this).removeClass('color-orange color-yellow color-green color-cyan color-blue color-pink color-gray')
   
  
positive.code: default_color = 'gray'
  
  setup_palette = () ->
    $('.color-box').click(() -> start_paint($(this)))
  
    $('#color-cancel').click(() -> end_paint())
  
  start_paint = (elem) ->
    color = elem.data('color-name')
  
negative.code:       $.post('<%= url_for "/color_task" %>',
          { project: project_key, id: $(this).data('id'), color: color_name }
        )
  
        event.stopPropagation() # prevent firing $('body') click event
    )
  
    $('#task').attr('disabled', 'disabled');
  