//Dropzone 파일업로드 - 다중선택 /*add 2024-05*/ if ($(".dropzone").length > 0) { Dropzone.autoDiscover = false; $(".dropzone").each(function(index) { var dropzoneID = "my-dropzone" + (index + 1); var myDropzone = new Dropzone("#" + dropzoneID, { url: "/file-upload", maxFilesize: 5, maxFiles: 1, // 한 번에 하나의 파일만 업로드 가능 autoProcessQueue: false, addRemoveLinks: true, dictDefaultMessage: "클릭하거나 파일을 여기로 드래그하세요", dictRemoveFile: "삭제", dictCancelUpload: "취소", dictCancelUploadConfirmation: "업로드를 취소하시겠습니까?", dictInvalidFileType: "이 파일은 업로드할 수 없습니다.", dictFileTooBig: "파일이 너무 큽니다. ({{filesize}}MB). 최대 파일 크기: {{maxFilesize}}MB.", dictMaxFilesExceeded: "파일을 더 이상 추가할 수 없습니다.", dictResponseError: "서버에서 응답을 받지 못했습니다.", init: function() { this.on("maxfilesexceeded", function(file) { this.removeAllFiles(); this.addFile(file); }); } }); }); } function fn_init_dropzone(dropzoneID) { Dropzone.autoDiscover = false; var myDropzone = new Dropzone("#" + dropzoneID, { url: "/file-upload", maxFilesize: 5, maxFiles: 1, // 한 번에 하나의 파일만 업로드 가능 autoProcessQueue: false, addRemoveLinks: true, dictDefaultMessage: "클릭하거나 파일을 여기로 드래그하세요", dictRemoveFile: "삭제", dictCancelUpload: "취소", dictCancelUploadConfirmation: "업로드를 취소하시겠습니까?", dictInvalidFileType: "이 파일은 업로드할 수 없습니다.", dictFileTooBig: "파일이 너무 큽니다. ({{filesize}}MB). 최대 파일 크기: {{maxFilesize}}MB.", dictMaxFilesExceeded: "파일을 더 이상 추가할 수 없습니다.", dictResponseError: "서버에서 응답을 받지 못했습니다.", init: function() { this.on("maxfilesexceeded", function(file) { this.removeAllFiles(); this.addFile(file); }); } }); } //출석체크 라디오 선택에따른 DISPLAY 변경 $(document).ready(function() { // 페이지 로드 시 초기 설정 if ($('#rb-1').is(':checked')) { $('.td-inner.display').hide(); } else if ($('#rb-2').is(':checked')) { $('.td-inner.display').show(); } // 라디오 버튼 변경 시 이벤트 처리 $('input[type=radio][name=r-group02]').change(function() { if (this.id === 'rb-1') { $('.td-inner.display').hide(); } else if (this.id === 'rb-2') { $('.td-inner.display').show(); } }); });