Просмотр исходного кода

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

visuddhinanda 3 лет назад
Родитель
Сommit
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){
 function select_channel(id,obj=null){
     _channel = id;
     _channel = id;
+	_nextPageStart = 0;
     updataHistory();
     updataHistory();
-    communityGetChapter(0);
+    communityGetChapter(_nextPageStart);
     refresh_selected_channel();
     refresh_selected_channel();
     console.log("change channel",_channel);
     console.log("change channel",_channel);
     //$(obj).siblings.removeClass('active');
     //$(obj).siblings.removeClass('active');