mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 10:49:10 -04:00
Big Calendar/Schedule update
This commit is contained in:
12
public/js/calendar.js
vendored
12
public/js/calendar.js
vendored
@@ -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()+")" );
|
||||
});
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user