diff --git a/Site/Pages/v5/Financial/FileExpenseClaim.aspx b/Site/Pages/v5/Financial/FileExpenseClaim.aspx index ba395c0d..84dede64 100644 --- a/Site/Pages/v5/Financial/FileExpenseClaim.aspx +++ b/Site/Pages/v5/Financial/FileExpenseClaim.aspx @@ -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 } }); }