       $all_checkboxes.attr('checked', false)
 
       $.each calendarPresets[presetId], (id, categoryId)->
-        $('input[name=calendar_category][value=' + categoryId + ']').attr('checked', true)+        $('input[name=calendar_category][value=' + categoryId + ']').attr('checked', true)

    # Laden wir mal die DIY Kategorie
    CalendarPreset.selectCategoriesFromPreset('diy');

    # Und dann noch das infinite scroll
    $(window).endlessScroll
      fireDelay: 200
      fireOnce: true
      inflowPixels: 500
      ceaseFireOnEmpty: false
      callback: (fireSequence, pageSequence, scrollDirection)->
        if scrollDirection == 'next'
          $.ajax

            type: 'GET'
            data: "from=#{calendarScrollFrom}&to=#{calendarScrollTo}"
            success: (data)->
            #  $('.calendar-calendar').append(data)
    ###

CalendarPreset =
  switchPreset: ->
