mirror of
https://github.com/janeczku/calibre-web
synced 2025-11-10 20:23:04 +00:00
Fix comic reader arrow visiblilty for one paged comic files
Changed logging during kobo sync
This commit is contained in:
@@ -179,26 +179,23 @@ kthoom.ImageFile = function(file) {
|
||||
};
|
||||
|
||||
function updateDirectionButtons(){
|
||||
$("#right").show();
|
||||
$("#left").show();
|
||||
var left, right = 1;
|
||||
if (currentImage == 0 ) {
|
||||
if (settings.direction === 0) {
|
||||
$("#right").show();
|
||||
$("#left").hide();
|
||||
left = 0;
|
||||
} else {
|
||||
$("#left").show();
|
||||
$("#right").hide();
|
||||
right = 0;
|
||||
}
|
||||
}
|
||||
if ((currentImage + 1) >= Math.max(totalImages, imageFiles.length)) {
|
||||
if (settings.direction === 0) {
|
||||
$("#left").show();
|
||||
$("#right").hide();
|
||||
right = 0;
|
||||
} else {
|
||||
$("#right").show();
|
||||
$("#left").hide();
|
||||
}
|
||||
left = 0;
|
||||
}
|
||||
}
|
||||
left === 1 ? $("#left").show() : $("#left").hide();
|
||||
right === 1 ? $("#right").show() : $("#right").hide();
|
||||
}
|
||||
function initProgressClick() {
|
||||
$("#progress").click(function(e) {
|
||||
|
||||
Reference in New Issue
Block a user