Ver código fonte

let each cell know its date via data-date attribute

Jae 14 anos atrás
pai
commit
ac1bd4c672
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      src/basic/BasicView.js

+ 1 - 0
src/basic/BasicView.js

@@ -238,6 +238,7 @@ function BasicView(element, calendar, viewName) {
 				cell.removeClass(tm + '-state-highlight fc-today');
 			}
 			cell.find('div.fc-day-number').text(date.getDate());
+			cell.attr('data-date', $.fullCalendar.formatDate(date, "yyyyMMdd"));
 			if (dowDirty) {
 				setDayID(cell, date);
 			}