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

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



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

    
    #----------------------------------------------------------------------------
