@@ -210,7 +210,7 @@ async function showCommits(commits, branchNames, allCommits, heads, pageNo, allB
210
210
setBranchOptions ( branchNames , Object . keys ( branchNames ) , allBranches ) ;
211
211
contentView . appendChild ( commitsOutsideContainer ) ;
212
212
213
- addNextPageButton ( commits , branchNames , allCommits , heads , pageNo ) ;
213
+ addNextPageButton ( commits , branchNames , allCommits , heads , pageNo , allBranches ) ;
214
214
215
215
drawGraph ( commits , commitDict ) ;
216
216
@@ -248,14 +248,13 @@ function relativeTime(date) {
248
248
return ( output ) ;
249
249
}
250
250
251
- function addNextPageButton ( commits , branchNames , allCommits , heads , pageNo ) {
251
+ function addNextPageButton ( commits , branchNames , allCommits , heads , pageNo , allBranches ) {
252
252
var newerButton = document . getElementById ( "newerButton" ) ;
253
253
var olderButton = document . getElementById ( "olderButton" ) ;
254
254
if ( commits . length >= 10 ) {
255
255
olderButton . setAttribute ( "aria-disabled" , "false" ) ;
256
256
olderButton . addEventListener ( "click" , function ( ) {
257
- // fetchFurther(commits, branchNames, allCommits, branches, heads, pageNo);
258
- fetchFurther ( commits . slice ( - 10 ) , allCommits , heads , pageNo , branchNames ) ;
257
+ fetchFurther ( commits . slice ( - 10 ) , allCommits , heads , pageNo , branchNames , allBranches ) ;
259
258
} ) ;
260
259
}
261
260
}
0 commit comments