Example #1
0
	componentWillMount: function(){
		this.unsubscribe = store.subscribe(function(){
			var currentStore = store.getState();
			this.setState({
				showCallIn: currentStore.showReducer.showCallIn,
				employeeMonthlySchedule: currentStore.employeeReducer.employeeMonthlySchedule,
				month: currentStore.calendarReducer.month,
				year: currentStore.calendarReducer.year,
				calendarDays: currentStore.calendarReducer.calendarDays,
				collection: currentStore.calendarReducer.collection,
				working_today: currentStore.calendarReducer.working_today
			})
		}.bind(this));
		calendar(months[month], year, month+1, true);

	},
Example #2
0
		setTimeout(function(){
			var x = $('.month-year').text().trim().split(" ");
			var shootmonth = months.indexOf(x[0]) + 1;
			calendar(x[0], x[1], shootmonth, false);
		}, 50);
Example #3
0
	componentDidMount: function(){
		calendar(months[month], year, month+1, false);
	},