Просмотр исходного кода

improve timezone demo to log dates

Adam Shaw 10 лет назад
Родитель
Сommit
3bd3103ac5
1 измененных файлов с 7 добавлено и 0 удалено
  1. 7 0
      demos/timezones.html

+ 7 - 0
demos/timezones.html

@@ -40,6 +40,7 @@
 				defaultDate: '2015-02-12',
 				timezone: currentTimezone,
 				editable: true,
+				selectable: true,
 				eventLimit: true, // allow "more" link when too many events
 				events: {
 					url: 'php/get-events.php',
@@ -57,6 +58,12 @@
 							$('<div class="tzo"/>').text(event.start.format('Z'))
 						);
 					}
+				},
+				dayClick: function(date) {
+					console.log('dayClick', date.format());
+				},
+				select: function(startDate, endDate) {
+					console.log('select', startDate.format(), endDate.format());
 				}
 			});
 		}