     #----------------------------------------------------------------------------
     reschedule_task: (id, bucket) ->
       $("#task_bucket").val bucket
-      $("#edit_task_" + id + " input[type=\"submit\"]")[0].click()
+      $("#edit_task_" + id + " input[type=submit]")[0].click()
 
     
     #----------------------------------------------------------------------------

      $("#" + id).slideDown(
        250
        ->
          input = $("#" + id).find("input[type=text]")
          input.focus()
      )




    #----------------------------------------------------------------------------
    focus_on_first_field: ->
      first_element = $("form:input[type=text]:first")
      if first_element.length
        first_element.focus()
        first_element.val first_element.val()
