Symbolic link recursion option, added m key for displaying all medium sized images
This commit is contained in:
@@ -1152,7 +1152,7 @@ function getThumbStartEnd(n,maxThumb) {
|
||||
|
||||
function allthumbs() {
|
||||
// Shows all the thumbnails in the current folder
|
||||
thumbstr='<h2>Images</h2><div id="thumbrow">';
|
||||
thumbstr='<div id="thumbrow">';
|
||||
for (i=0; i<imagelist.length; i++) {
|
||||
thumbstr+='<span id="n'+i+'" class="imagebox thumbbox"><img title="'+titlestring(imagedesc[i])+'" onclick="showimage('+String(i)+')" src="_tn/tn_'+(encodeURIComponent(imagelist[i]))+'.jpg"></span>';
|
||||
}
|
||||
@@ -1165,6 +1165,21 @@ function allthumbs() {
|
||||
return;
|
||||
}
|
||||
|
||||
function allmediums() {
|
||||
// Shows all the medium sized in the current folder
|
||||
thumbstr='<div id="thumbrow">';
|
||||
for (i=0; i<imagelist.length; i++) {
|
||||
thumbstr+='<span id="n'+i+'" class="medium"><img title="'+titlestring(imagedesc[i])+'" onclick="showimage('+String(i)+')" src="_med/med_'+(encodeURIComponent(imagelist[i]))+'.jpg"></span>';
|
||||
}
|
||||
thumbstr+='</div>';
|
||||
$('#thumbcontainer').html(thumbstr);
|
||||
$('#imagecontainer').html('');
|
||||
$('#imagecontainer').css('height',0);
|
||||
$('#desccontainer').hide();
|
||||
currentimage=-1;
|
||||
return;
|
||||
}
|
||||
|
||||
function subfoldersmalllist() {
|
||||
// Shows a small subfolder list
|
||||
pathstr='<span class="pathsmalllink">Subfolders: ';
|
||||
@@ -1561,6 +1576,10 @@ function keypressed(e) {
|
||||
if (unicode==70) {
|
||||
flipfullscreen();
|
||||
}
|
||||
// m: mediums
|
||||
if (unicode==77) {
|
||||
allmediums();
|
||||
}
|
||||
// o: originals
|
||||
if (unicode==79) {
|
||||
fliporiginals();
|
||||
|
||||
Reference in New Issue
Block a user