wekan/packages/meteor-fullcalendar/template.js
2023-08-22 18:51:03 -03:00

11 lines
327 B
JavaScript

window.moment = moment;
Template.fullcalendar.rendered = function() {
var div = this.$(this.firstNode);
if(this.data != null) {
//jquery takes care of undefined values, no need to check here
div.attr('id', this.data.id);
div.addClass(this.data.class);
}
div.fullCalendar(this.data);
};