Working on receipt zooming
This commit is contained in:
@@ -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
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user