Explorar o código

翻页以及切换时滚动条回到顶部

duxiaohong %!s(int64=2) %!d(string=hai) anos
pai
achega
39b968ced0
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      bookdetail.html

+ 3 - 0
bookdetail.html

@@ -507,6 +507,7 @@
 					muluUpdateActive();
 					readerm.jumpChapter();
 					actAllDialog(false)
+					window.scrollTo(0,0);
 				})
 				 // 点击弹窗内容以外的地方关闭弹窗
 				$("#mulu_Mask").on('click', function(e) {
@@ -621,10 +622,12 @@
 
 
 				$("#btn_prev").click(function() {
+					window.scrollTo(0,0);
 					readerm.prveChapter();
 				});
 
 				$("#btn_next").click(function() {
+					window.scrollTo(0,0);
 					readerm.nextChapter();
 				});
 			}