Explorar o código

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

visuddhinanda %!s(int64=3) %!d(string=hai) anos
pai
achega
3900a7a8a5
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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');