소스 검색

:bug: 更换channel新数据在最下面

visuddhinanda 3 년 전
부모
커밋
3900a7a8a5
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      public/app/palicanon/palicanon.js

+ 2 - 1
public/app/palicanon/palicanon.js

@@ -1216,8 +1216,9 @@ function RenderBreadCrumbs(){
 }
 function select_channel(id,obj=null){
     _channel = id;
+	_nextPageStart = 0;
     updataHistory();
-    communityGetChapter(0);
+    communityGetChapter(_nextPageStart);
     refresh_selected_channel();
     console.log("change channel",_channel);
     //$(obj).siblings.removeClass('active');