⚝
One Hat Cyber Team
⚝
Your IP:
192.88.135.6
Server IP:
192.124.249.6
Server:
Linux 56.244.72.148.host.secureserver.net 5.14.0-570.62.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 10:10:59 EST 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
umkm
/
public_html
/
public
/
assets
/
user
/
js
/
Edit File: cause.js
'use strict'; function cloneInput(fromId, toId, event) { let $target = $(event.target); if ($target.is(':checked')) { $('#' + fromId + ' .form-control').each(function (i) { let index = i; let val = $(this).val(); let $toInput = $('#' + toId + ' .form-control').eq(index); if ($(this).hasClass('summernote')) { $toInput.summernote('code', val); } else if ($(this).data('role') == 'tagsinput') { if (val.length > 0) { let tags = val.split(','); tags.forEach(tag => { $toInput.tagsinput('add', tag); }); } else { $toInput.tagsinput('removeAll'); } } else { $toInput.val(val); } }); } else { $('#' + toId + ' .form-control').each(function (i) { let $toInput = $('#' + toId + ' .form-control').eq(i); if ($(this).hasClass('summernote')) { $toInput.summernote('code', ''); } else if ($(this).data('role') == 'tagsinput') { $toInput.tagsinput('removeAll'); } else { $toInput.val(''); } }); } } $(document).ready(function () { // cause form $('#causeForm').on('submit', function (e) { $('.request-loader').addClass('show'); e.preventDefault(); let action = $(this).attr('action'); let fd = new FormData($(this)[0]); $.ajax({ url: action, method: 'POST', data: fd, contentType: false, processData: false, success: function (data) { $('.request-loader').removeClass('show'); if (data == 'success') { location.reload(); } }, error: function (error) { let errors = ``; for (let x in error.responseJSON.errors) { errors += `
${error.responseJSON.errors[x][0]}
`; } if (error?.responseJSON?.exception) { errors += `
${error?.responseJSON?.exception}
`; } $('#causeErrors').removeClass('dis-none'); $('#causeErrors ul').html(errors); $('#causeErrors').show(); $('.request-loader').removeClass('show'); $('html, body').animate({ scrollTop: $('#causeErrors').offset().top - 100 }, 1000); } }); }); });
Simpan