###########레이아웃을 업데이트해서,, 작업도 다시해야되네요 ㅠㅠ 조만간 추가작성하겠습니다.
돈주고 사용해서 사용하는 Slow 테마입니다 ㅎㅎ
뭐 필요한 기능은 커스텀해서 사용하는거니.. 이번에는 XEtown에서 본 댓글 새로고침을 만들어보았습니다.
https://xetown.com/tips/248952
구조가 조금 다르기 때문에 수정하는 파일도 다릅니다.
modules/board/skins/slow/components/comment/comment-vote/comment-vote.js
파일 최상단
function commentReload(target_srl) {
var reqUrl = current_url.setQuery('mid', current_mid, 'document_srl', target_srl);
jQuery('.loading-spinner').show();
jQuery('.comment-reload > span').hide();
jQuery.ajax ({
url:reqUrl,
dataType:'html',
success: function(data) {
var a = jQuery(data),
b = a.find('#app-board-comment-list').html();
jQuery('#app-board-comment-list').html(b);
},
complete: function() {
jQuery('.tg_cnt2').css('display', 'none');
jQuery('.tg_btn2, .tg_close2').on('click', function() {
jQuery('.tg_cnt2').toggle();
})
setTimeout(function() {
jQuery('.loading-spinner').fadeOut();
jQuery('.comment-reload > span').fadeIn();
}, 500);
}
});
}