TimeGridRenderUtils.js 414 B

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