// Check the href data for searched term. Using href because the link label truncates if the file or folder name is too long.
// Special handling for 'Parent Directory' as the href data doesn't contain that word.
if (arraySearch.toLowerCase().indexOf(target.toLowerCase())>-1||(($(this).text()=='Parent Directory')&&(parent_directory.indexOf(target.toLowerCase())>-1))){
...
...
@@ -115,13 +114,13 @@
}
});
}
// Runs when clear button is hit.
$("#searchclear").click(function(){
$("#searchBox").val('');
filter('');
});
// Scan all files in the directory, check the extensions and show the right MIME-type image.
$('pre a').each(function(){
varfound=0;
...
...
@@ -136,7 +135,7 @@
return;
}
}
// Add an icon for the go-back link.
if ($(this).text().indexOf("Parent Directory")>=0){