complaint calendar transfer warning

This commit is contained in:
2024-04-15 18:01:31 +05:45
parent e9c62209d4
commit d1851922ec
36 changed files with 2332 additions and 60 deletions

View File

@ -1,8 +1,8 @@
$('body').on('click', '.remove-item-btn', function (e) {
e.preventDefault();
let url = $(this).data('link');
let id = $(this).data('id');
e.preventDefault();
let url = $(this).data('link');
let id = $(this).data('id');
Swal.fire({
title: 'Are you sure?',
@ -24,7 +24,7 @@ $('body').on('click', '.remove-item-btn', function (e) {
id: id
},
success: function (response) {
if(response.status == true){
if (response.status == true) {
location.reload();
}
},
@ -47,28 +47,6 @@ document.querySelectorAll('.ckeditor-classic').forEach(editor => {
});
$('.date-picker').nepaliDatePicker({
// dateFormat: '%D, %M %d, %y',
dateFormat: '%y-%m-%d',
closeOnDateSelect: true,
});
// initialize filepond
const inputElement = document.querySelector('.filepond');
console.log(inputElement);
FilePond.registerPlugin(FilePondPluginImagePreview);
const pond = FilePond.create(inputElement);
FilePond.setOptions({
server: {
process: "/filepond/upload",
revert: '/delete',
headers: {
'X-CSRF-TOKEN': document.querySelector('meta[name="csrf-token"]').getAttribute('content'),
},
}
});
//ajax form submit
document.addEventListener('DOMContentLoaded', function () {
let form = document.getElementById('storeUpdateForm');

File diff suppressed because one or more lines are too long