 jQuery ->
     $("#state-menu select").change ->
         selected = $(@).find("option:selected")
-        console.log("Changed to: " +selected.val())
         $.get("/lea?state=" + selected.val(), (data) ->
             $("#lea-menu").html(data)
             $("#lea-menu ul").trigger("change")

        $("input#app_authorized_ed_orgs").attr("value", JSON.stringify(edorgs))
jQuery ->
    $("div.enable-disable a#enable-all").click ->
        alert "Enable"
        $("#lea-menu ul li input:not(:checked)").trigger("change")
    $("div.enable-disable a#disable-all").click ->
        alert "Disable"
        $("#lea-menu ul li input:checked").trigger("change")
    false

jQuery ->
  $("#applications tr:odd").addClass("odd")
  $("#applications tr:not(.odd)").hide()

jQuery ->
    $("#lea-menu ul li input").live 'change', ->
        id = $(@).parent().attr('id')
        edorgs = getEdorgs()
        if $(@).is(':checked')
            edorgs.push id
        else
            #Remove the element from the array
