TimeGridRenderUtils.js 391 B

123456789101112131415
  1. export function getTimeAxisInfo() {
  2. return $('.fc-slats tr[data-time]').map(function(i, tr) {
  3. return {
  4. text: $(tr).find('.fc-time').text(),
  5. isMajor: !$(tr).hasClass('fc-minor')
  6. }
  7. }).get()
  8. }
  9. // for https://github.com/fullcalendar/fullcalendar-scheduler/issues/363
  10. export function isStructureValid() {
  11. return $('.fc-time-grid .fc-content-skeleton').length === 1
  12. }