Big Calendar/Schedule update

This commit is contained in:
Mathieu Lagace
2019-08-18 17:26:49 -04:00
parent 3546298a08
commit cf5f7effbf
40 changed files with 33844 additions and 110 deletions

12
public/js/calendar.js vendored
View File

@@ -12,7 +12,7 @@ function initFullCalendar(authToken) {
},
events: '/api/schedule/events',
eventClick: function (info) {
$.get("/api/schedule/full/events/" + info.event.id + "/"+ info.event.extendedProps.extraParams.db_type + "/modal?api_token="+authToken, function (data) {
$.get("/api/schedule/events/modal/full/" + info.event.id + "/"+ info.event.extendedProps.extraParams.db_type + "?api_token="+authToken, function (data) {
$("#modal-content").html(data);
});
$('#schedulemodal').modal('toggle')
@@ -37,4 +37,14 @@ function initFullCalendar(authToken) {
calendar.render();
});
}
function switchType(date) {
var selectInput = $('#type')
$.get( "/api/schedule/events/add/modal/"+selectInput.val()+"/"+date+"?api_token="+api_token, function( data ) {
$( "#container" ).html( data );
console.log( "Loading defaut value for activity type ("+selectInput.val()+")" );
});
}