Skip to content

Commit

Permalink
Fix comic reader arrow visiblilty for one paged comic files
Browse files Browse the repository at this point in the history
Changed logging during kobo sync
  • Loading branch information
OzzieIsaacs committed Oct 28, 2023
1 parent 3d07efb commit c550d6c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion cps/kobo.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def generate_sync_response(sync_token, sync_results, set_cont=False):
extra_headers["x-kobo-recent-reads"] = store_response.headers.get("x-kobo-recent-reads")

except Exception as ex:
log.error("Failed to receive or parse response from Kobo's sync endpoint: {}".format(ex))
log.error_or_exception("Failed to receive or parse response from Kobo's sync endpoint: {}".format(ex))
if set_cont:
extra_headers["x-kobo-sync"] = "continue"
sync_token.to_headers(extra_headers)
Expand Down
19 changes: 8 additions & 11 deletions cps/static/js/kthoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c550d6c

Please sign in to comment.