Thanks, rern.
The index bar works for me in the version of
enhance.js dated July 1, 2018. It works both for files on the SD Card and Network mounts.
I think the relevant text in that version is at lines 280-299, which I've copied below.
// index link
$( '#db-index li' ).click( function() {
var topoffset = !$( '#menu-top' ).is( ':hidden' ) ? 80 : 40;
var indextext = $( this ).text();
if ( indextext === '#' ) {
window.scrollTo( 0, 0 );
return
}
if ( GUI.currentpath.slice( 0, 3 ) === 'USB' ) {
var datapathindex = GUI.currentpath +'/'+ indextext;
} else {
var datapathindex = '^'+ indextext;
var dirmode = 1
}
var matcharray = $( '#database-entries li' ).filter( function() {
var name = dirmode ? $( this ).find( 'span:eq( 0 )' ).text() : $( this ).attr( 'data-path' );
return stripLeading( name ).match( new RegExp( datapathindex, 'i' ) );
} );
if ( matcharray.length ) window.scrollTo( 0, matcharray[0].offsetTop - topoffset );
} );
dbtop = 0;
I note that while
db-index only appears at line 782 in the current version, there are also references to it in the July 1, 2018 version at lines 1112, 1197, 1516, 1554, and 1663, but I believe these refer to displaying or hiding the index bar rather than to its functionality.
I'm not experienced enough to know if the differences matter; I did cut and paste the old code in the current file, but the index bar still didn't work, except the
# scrolled to the top.