     $(document).on 'append-next-page', (event, content) =>
       element = $(event.target)
       element.find('.show-more').replaceWith $(content)
+      element.foundation()
       @set_main_content_height()
 
 

        event.preventDefault()
      .ajaxComplete(_init_each_datepicker)

    $.datepicker.setDefaults($.datepicker.regional['pl']);
    $.datepicker.setDefaults(dateFormat: 'dd/mm/yy');
    _init_each_datepicker()



    $('.submenu li.show-more').toggle(elements.length > 0)

  loader: ->
    Loader

