ALPHA 3.0.1i

This commit is contained in:
TheGamecraft
2018-08-20 15:30:08 -04:00
parent 54cdc12680
commit c77d35bd14
10 changed files with 220 additions and 24 deletions

View File

@@ -70,24 +70,38 @@
<script src="/assets/js/calendar/calendar.js"></script>
<div class="log"></div>
<script>
function deleteEvent($id){
function deleteEvent(pid){
swal({
title: 'Êtes vous sure ?',
title: 'Êtes vous certain ?',
text: "Vous ne pourrez annuler cette action",
type: 'warning',
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: 'Yes, delete it!'
confirmButtonText: 'Oui',
cancelButtonText: 'Non'
}).then((result) => {
if (result.value) {
(function($) {
$.post('/api/calendar/delete', { id: pid } , function(data) {
console.log('Delete');
});
})(jQuery);
swal(
'Deleted!',
'Your file has been deleted.',
'Supprimé!',
"L'évenement a été supprimé",
'success'
)
).then((result) => {
if (result.value) {
location.reload();
}
})
}
})
})
}
</script>
@endsection