mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 10:49:10 -04:00
Test performance
This commit is contained in:
7
public/js/calendar.js
vendored
7
public/js/calendar.js
vendored
@@ -11,6 +11,11 @@ function initFullCalendar(authToken) {
|
||||
right: 'prev,next'
|
||||
},
|
||||
events: '/api/schedule/events',
|
||||
eventRender: function(event, element) {
|
||||
if(event.icon){
|
||||
element.find(".fc-title").prepend("<i class='"+event.icon+"'></i>");
|
||||
}
|
||||
},
|
||||
eventClick: function (info) {
|
||||
$.get("/api/schedule/events/modal/full/" + info.event.id + "/"+ info.event.extendedProps.extraParams.db_type + "?api_token="+authToken, function (data) {
|
||||
$("#modal-content").html(data);
|
||||
@@ -102,4 +107,4 @@ function deleteEvent(pid){
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user