[이윰] 댓글에 이미지가 추가된 댓글을 수정할 경우 이미지가 삭제되는 버그 패치

페이지 정보

yadolee 루루아빠 3,076 2015.08.07 19:39:02

평점

  • 평점 : 0점 (0명 참여)

본문

각 스킨의 view.comment.skin 을 열고 다음과 같이 수정한다.
수정 전

                <input type="hidden" value="{=strstr(.wr_option,'secret')}" id="secret_comment_{.comment_id}">
                <input type="hidden" value="{.anonymous_id}" id="anonymous_id_{.comment_id}">
                <textarea id="save_comment_{.comment_id}" style="display:none">{.content1}</textarea>
수정 후

                <input type="hidden" value="{=strstr(.wr_option,'secret')}" id="secret_comment_{.comment_id}">
                <input type="hidden" value="{.anonymous_id}" id="anonymous_id_{.comment_id}">
                <input type="hidden" value="{.imgname}" id="imgname_{.comment_id}">
                <textarea id="save_comment_{.comment_id}" style="display:none">{.content1}</textarea>

수정 전

                                <div id="collapse-image-cm" class="panel-collapse collapse">
                                    <div class="tag-box tag-box-e3 margin-top-10">
                                        <label for="file" class="input input-file">
                                            <div class="button"><input type="file" id="file" name="cmt_file[]" value="이미지선택" title="파일첨부 : 용량 {_upload_max_filesize} 이하만 업로드 가능" onchange="this.parentNode.nextSibling.value = this.value">Image</div><input type="text" readonly>
                                        </label>
                                    </div>
                                </div>
수정 후

                                <div id="collapse-image-cm" class="panel-collapse collapse">
                                    <div class="tag-box tag-box-e3 margin-top-10">
                                        <label for="file" class="input input-file">
                                            <div class="button"><input type="file" id="file" name="cmt_file[]" value="이미지선택" title="파일첨부 : 용량 {_upload_max_filesize} 이하만 업로드 가능" onchange="this.parentNode.nextSibling.value = this.value">Image</div><input type="text" readonly>
                                        </label>
                                        <div id="del_cmtimg"></div>
                                    </div>
                                </div>

수정 전

            <!--{? _is_anonymous}-->
            if (document.getElementById('anonymous_id_'+comment_id).value)
                document.getElementById('anonymous').checked = true;
            else
                document.getElementById('anonymous').checked = false;
            <!--{/}-->
        }

        document.getElementById('comment_id').value = comment_id;
        document.getElementById('w').value = work;
수정 후

            <!--{? _is_anonymous}-->
            if (document.getElementById('anonymous_id_'+comment_id).value)
                document.getElementById('anonymous').checked = true;
            else
                document.getElementById('anonymous').checked = false;
            <!--{/}-->
            var imgname = document.getElementById('imgname_' + comment_id).value;
            if(imgname) {
                var delchk_str = '<label class="checkbox"><input type="checkbox" name="del_cmtimg" value="1"><i></i><span class="font-size-12">파일삭제 ('+imgname+')</span></label>';
                $("#del_cmtimg").html('');
                $("#del_cmtimg").html(delchk_str);
            }
        }
 
        document.getElementById('comment_id').value = comment_id;
        document.getElementById('w').value = work;
추천인
  • 추천해 주세요
yadolee
6
루루아빠 - 회원등급 : 최고관리자 - 포인트 : 1,330,731
레벨 99
경험치 1,483,510

Progress Bar 94.99%

- 가입일 : 2015-03-04 03:24:54
- 서명 : KNOW YOUR LIMITS BUT NEVER STOP TRYING TO EXCEED THEM !!
- 자기소개 : 루루의 자랑 루루아빠랍니다~~

댓글

첫 번째 댓글을 남겨 주세요

Total 7622839 페이지

제목 글쓴이 날짜 조회 추천
이윰  🏆 🚩 댓글에 이미지가 추가된 댓글을 수정할 경우 이미지가 삭제되는 버그 패치 루루아빠 2015.08.07 3,077 0
이윰  댓글+1🏆 카테고리를 사용하는 게시판에서 무한스크롤 사용시 루루아빠 2015.08.07 3,282 0
이윰  댓글+1🏆 게시판 본문 보기시 제목 글자 수 늘리기 루루아빠 2015.08.06 3,203 0
이윰  🏆 Eyoom Builder 1.1.9 - 그누보드 5.1.0 테마버전 지원 루루아빠 2015.08.05 3,510 0
그누•영카트  🏆 그누보드5 최소 글수 제한 관리자와 특정레벨 예외로 하기 루루아빠 2015.08.05 3,035 0
이윰  🏆 갤러리 및 최신 갤러리에서 새로운 글 이미지 내에 표현하기 루루아빠 2015.08.04 2,979 0
그누•영카트  🏆 그누보드 5.1.0 패치 루루아빠 2015.08.03 2,792 0
이윰  🏆 modal 창 크기 변경하기 루루아빠 2015.07.30 3,762 0
이윰  댓글+1🏆 style.css를 유지하면서 venobox 플러그인 사용하기 루루아빠 2015.07.30 3,873 0
이윰  🏆 Eyoom Builder 1.1.8 추가 수정사항 루루아빠 2015.07.30 2,848 0
이윰  🏆 new 이미지를 출력하는 시간을 늘리기 루루아빠 2015.07.28 3,332 0
그누•영카트  🏆 영카트 5.0.43 패치 루루아빠 2015.07.27 2,752 0
그누•영카트  🏆 그누보드 5.0.42 패치 루루아빠 2015.07.27 3,021 0
이윰  댓글+1🏆 dropdown menu 펼쳐지는 위치 조정하기 루루아빠 2015.07.24 4,380 0
이윰  🏆 Eyoom Builder 1.1.8 패치 루루아빠 2015.07.24 3,137 0
이윰  🏆 이모티콘을 이윰빌더에 적용하기 위한 규칙 루루아빠 2015.07.23 3,053 0
이윰  댓글+1🏆 이모티콘 크기 바꾸기 루루아빠 2015.07.23 3,137 0
그누•영카트  🏆 접속자 관리에서 브라우저와 OS 종류를 추가해보자 루루아빠 2015.07.20 3,463 0
그누•영카트  🏆 영카트 5.0.42 패치 루루아빠 2015.07.20 3,439 0
그누•영카트  🏆 그누보드 5.0.41 패치 루루아빠 2015.07.20 3,465 0