Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips
System : Linux server1.richineiserver.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : fdshops ( 1003)
PHP Version : 8.2.21
Disable Function : NONE
Directory :  /home/fdshops/public_html/storage/framework/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/fdshops/public_html/storage/framework/views/00903f81e63f276b61cf6bbe4926af4e1b1655b6.php
<script type="text/javascript">
	$('#task_modal').on('shown.bs.modal', function() {
	$('form#task_form .datepicker').datetimepicker({
        format: moment_date_format + ' ' + moment_time_format,
        ignoreReadonly: true,
    });
    $('form#task_form .select2').select2({ dropdownParent: $(this) });

	tinymce.init({
        selector: 'textarea#to_do_description',
    });

	if ($('#media_upload').length) {
       $(this).find("div#media_upload").dropzone({
            url: $('#media_upload_url').val(),
            paramName: 'file',
            uploadMultiple: true,
            autoProcessQueue: false,
            addRemoveLinks: true,
            params: {
            	'model_id': $('#model_id').val(),
            	'model_type': $('#model_type').val(),
            	'model_media_type': $('#model_media_type').val()
            },
            headers: {
                'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
            },
            success: function(file, response) {
                if (response.success) {
                    toastr.success(response.msg);
                    $("#task_modal").modal('hide');
                } else {
                    toastr.error(response.msg);
                }
            },
        });
    }

	 //form validation
	$("form#task_form").validate();
});

$('#task_modal').on('hide.bs.modal', function(){
	tinymce.remove("textarea#to_do_description");
});

//form submit
$(document).on('submit', 'form#task_form', function(e){
	e.preventDefault();
	var url = $(this).attr("action");
	var method = $(this).attr("method");
	var data = $("form#task_form").serialize();
	var ladda = Ladda.create(document.querySelector('.ladda-button'));
	ladda.start();
	$.ajax({
		method: method,
		url: url,
		data: data,
		dataType: "json",
		success: function(result){
			ladda.stop();
			if(result.success == true){
				var myDropzone = Dropzone.forElement("#media_upload");

				if (typeof result.todo_id !== 'undefined') {
					myDropzone.options.params.model_id = result.todo_id;
				}

                myDropzone.processQueue();

				if (typeof task_table !== 'undefined') {
					task_table.ajax.reload();
				}

				if ($('#calendar').length) {
					$('#calendar').fullCalendar( 'refetchEvents' );
				}
			} else {
				toastr.error(result.msg);
			}
		}
	});
});
</script><?php /**PATH /var/www/clients/client13/web23/web/Modules/Essentials/Providers/../Resources/views/todo/todo_javascript.blade.php ENDPATH**/ ?>

Spamworldpro Mini