• 돌아가기
  • 아래로
  • 위로
  • 목록
  • 댓글

라이믹스 Slow 테마 댓글 새로고침 적용하기.

달소 달소 210

0

1

 

###########레이아웃을 업데이트해서,, 작업도 다시해야되네요 ㅠㅠ 조만간 추가작성하겠습니다.

 

 

 

돈주고 사용해서 사용하는 Slow 테마입니다 ㅎㅎ

 

뭐 필요한 기능은 커스텀해서 사용하는거니.. 이번에는 XEtown에서 본 댓글 새로고침을 만들어보았습니다.

 

 

 

https://xetown.com/tips/248952

궁금하다고 쪽지주신 분이 계셔서.. 비교적 간단한거라 팁으로 올려드립니다. CSS스피너와 jquery를 이용한 ...
XETOWN - 파파즈 / 2016-04-05

 

구조가 조금 다르기 때문에 수정하는 파일도 다릅니다.

 

 

 

 

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);
    }
  });
}
 

신고공유스크랩
1

댓글 쓰기 권한이 없습니다. 로그인

취소 댓글 등록

cmt alert

신고

"님의 댓글"

이 댓글을 신고하시겠습니까?

댓글 삭제

"님의 댓글"

삭제하시겠습니까?


목록

공유

facebooktwitterpinterestbandkakao story

등록된 글이 없습니다.