Working on receipt zooming

This commit is contained in:
Rick Falkvinge
2018-03-03 14:56:19 +01:00
parent 0552d4c489
commit 58787df825
+12 -8
View File
@@ -102,14 +102,18 @@
$('#imgModalDocument').attr('src', '/Pages/v5/Support/StreamUpload.aspx?DocId=' + result.DocumentId);
$('#imgModalDocument').attr('data-zoom-image', '/Pages/v5/Support/StreamUpload.aspx?DocId=' + result.DocumentId + '&hq=1');
$('.zoomContainer').remove();
$('#imgModalDocument').elevateZoom({
zoomType: "lens",
cursor: "crosshair",
zoomWindowFadeIn: 200,
zoomWindowFadeOut: 200,
lensShape: "round",
lensSize: 150
});
$('#imgModalDocument').removeData(image, 'elevateZoom');
$('#imgModalDocument').removeData(image, 'zoomImage');
setTimeout(function () {
$('#imgModalDocument').elevateZoom({
zoomType: "lens",
cursor: "crosshair",
zoomWindowFadeIn: 200,
zoomWindowFadeOut: 200,
lensShape: "round",
lensSize: 150
});
}, 50); // delay this slightly for race condition reasons
}
});
}