From d05cb90d0460e20a15c77af7cc0dbc85923ae7bb Mon Sep 17 00:00:00 2001 From: Ilham Wara Nugroho Date: Thu, 11 Sep 2025 15:50:31 +0700 Subject: [PATCH] upadte --- .../modules/konten/kegiatan/form.blade.php | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/resources/views/modules/konten/kegiatan/form.blade.php b/resources/views/modules/konten/kegiatan/form.blade.php index b8d0f24..1eb0445 100644 --- a/resources/views/modules/konten/kegiatan/form.blade.php +++ b/resources/views/modules/konten/kegiatan/form.blade.php @@ -187,30 +187,30 @@ return false; }); $(document).ready(function() { - $('.numberInput').on('input', function() { - this.value = this.value.replace(/[^0-9]/g, ''); // Hanya angka 0-9 - }); - $('#togglePassword').on('click', function() { - let passwordField = $('#password'); - let icon = $(this).find('i'); + $('.numberInput').on('input', function() { + this.value = this.value.replace(/[^0-9]/g, ''); // Hanya angka 0-9 + }); + $('#togglePassword').on('click', function() { + let passwordField = $('#password'); + let icon = $(this).find('i'); - // Cek apakah input saat ini bertipe password - if (passwordField.attr('type') === 'password') { - passwordField.attr('type', 'text'); // Ubah ke teks - icon.removeClass('fa-eye').addClass('fa-eye-slash'); // Ganti ikon - } else { - passwordField.attr('type', 'password'); // Ubah ke password - icon.removeClass('fa-eye-slash').addClass('fa-eye'); // Kembalikan ikon - } - }); - }); + // Cek apakah input saat ini bertipe password + if (passwordField.attr('type') === 'password') { + passwordField.attr('type', 'text'); // Ubah ke teks + icon.removeClass('fa-eye').addClass('fa-eye-slash'); // Ganti ikon + } else { + passwordField.attr('type', 'password'); // Ubah ke password + icon.removeClass('fa-eye-slash').addClass('fa-eye'); // Kembalikan ikon + } + }); + }); const myDropzone = new Dropzone(".dropzone", { url: "{{ url('uploadTempImage') }}", // URL ke controller kamu method: "POST", - xhrFields: { - withCredentials: true - }, + // xhrFields: { + // withCredentials: true + // }, headers: { 'X-CSRF-TOKEN': document.querySelector('meta[name="csrf-token"]').getAttribute('content'), 'X-Requested-With': 'XMLHttpRequest'