1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-12-25 17:40:31 +00:00

Restored click on progressbar

This commit is contained in:
OzzieIsaacs 2017-12-10 14:02:49 +01:00
parent 2fe03961bb
commit 03e2a1e73b

View File

@ -105,6 +105,14 @@ kthoom.ImageFile = function(file) {
this.data = file;
};
function initProgressClick() {
$("#progress").click(function(e) {
var page = Math.max(1, Math.ceil((e.offsetX / $(this).width()) * totalImages)) - 1;
currentImage = page;
updatePage();
});
};
function loadFromArrayBuffer(ab) {
var f = [];
@ -443,6 +451,7 @@ function init(fileid) {
request.fileid = fileid.substring(0, fileid.length - 2);
request.addEventListener("load", ImageLoadCallback);
request.send();
initProgressClick();
document.body.className += /AppleWebKit/.test(navigator.userAgent) ? " webkit" : "";
kthoom.loadSettings();
updateScale(true);