mirror of
https://github.com/janeczku/calibre-web
synced 2025-10-26 21:07:40 +00:00
Update Teststatus
Little code refactoring
This commit is contained in:
@@ -179,19 +179,21 @@ kthoom.ImageFile = function(file) {
|
||||
};
|
||||
|
||||
function updateDirectionButtons(){
|
||||
$("#right").show();
|
||||
$("#left").show();
|
||||
if (currentImage == 0 ) {
|
||||
if (settings.direction === 0) {
|
||||
$("#right").show();
|
||||
$("#left").hide();
|
||||
} else {
|
||||
$("#left").show();
|
||||
$("#right").hide();
|
||||
}
|
||||
}
|
||||
if ((currentImage + 1) >= Math.max(totalImages, imageFiles.length)) {
|
||||
if (settings.direction === 0) {
|
||||
$("#left").show();
|
||||
$("#right").hide();
|
||||
} else {
|
||||
$("#right").show();
|
||||
$("#left").hide();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user