       type: "PUT"
       event: event
       url: "/api/v1/project/#{@project_name()}/settings"
-      contentType: "application/json"
       data: JSON.stringify(
         hipchat_room: @hipchat_room()
         hipchat_api_token: @hipchat_api_token()


# Make the buttons disabled when clicked
$.ajaxSetup
  complete: (xhr, status) ->
    if @event
      t = $(@event.target)

      type: "PUT"
      event: event
      url: "/api/v1/user/save-preferences"
      data: JSON.stringify {basic_email_prefs: @basic_email_prefs}
    )
    false # dont bubble the event up
