From f81dce5e70ff4f95493845fb4ce5df455d2a17ef Mon Sep 17 00:00:00 2001 From: Zach Fox Date: Fri, 14 Apr 2017 15:42:19 -0700 Subject: [PATCH] Fix the bug --- scripts/system/html/js/SnapshotReview.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/system/html/js/SnapshotReview.js b/scripts/system/html/js/SnapshotReview.js index 4e2e0223a0..cd650ea679 100644 --- a/scripts/system/html/js/SnapshotReview.js +++ b/scripts/system/html/js/SnapshotReview.js @@ -11,6 +11,7 @@ // var paths = [], idCounter = 0, imageCount; +var loadingGifPath = '../../../resources/icons/loadingDark.gif'; function addImage(data) { if (!data.localPath) { return; @@ -84,12 +85,14 @@ window.onload = function () { if (messageOptions.containsGif) { if (messageOptions.processingGif) { imageCount = message.action.length + 1; // "+1" for the GIF that'll finish processing soon - message.action.unshift({ localPath: '../../../resources/icons/loadingDark.gif' }); + message.action.unshift({ localPath: loadingGifPath }); message.action.forEach(addImage); document.getElementById('p0').disabled = true; } else { + var gifPath = message.action[0].localPath; document.getElementById('p0').disabled = false; - document.getElementById('p0img').src = message.action[0].localPath; + document.getElementById('p0img').src = gifPath; + paths[0].localPath = gifPath; } } else { imageCount = message.action.length;