so now, when you add a PTO scheduled date, the calendar on your PTO page automatically updates to show this event :-)
This commit is contained in:
@@ -127,7 +127,7 @@
|
||||
<script type="text/javascript">
|
||||
|
||||
$('#calendar').fullCalendar({
|
||||
events: <%= get_pto_schedule_schedule_index_path.inspect.html_safe %>,
|
||||
events: <%= get_pto_schedule_schedule_index_path(:format => "json").inspect.html_safe %>,
|
||||
})
|
||||
|
||||
|
||||
@@ -234,6 +234,7 @@ $("#cal_update_submit").click(function(event) {
|
||||
$('#failure').show(500).delay(1500).fadeOut();
|
||||
} else {
|
||||
$('#success').show(500).delay(1500).fadeOut();
|
||||
$('#calendar').fullCalendar('refetchEvents')
|
||||
}
|
||||
},
|
||||
error: function(event) {
|
||||
|
||||
Reference in New Issue
Block a user