mirror of
https://github.com/overte-org/overte.git
synced 2025-07-24 14:46:47 +02:00
Fix the bug
This commit is contained in:
parent
6a6800b8c3
commit
f81dce5e70
1 changed files with 5 additions and 2 deletions
|
@ -11,6 +11,7 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
var paths = [], idCounter = 0, imageCount;
|
var paths = [], idCounter = 0, imageCount;
|
||||||
|
var loadingGifPath = '../../../resources/icons/loadingDark.gif';
|
||||||
function addImage(data) {
|
function addImage(data) {
|
||||||
if (!data.localPath) {
|
if (!data.localPath) {
|
||||||
return;
|
return;
|
||||||
|
@ -84,12 +85,14 @@ window.onload = function () {
|
||||||
if (messageOptions.containsGif) {
|
if (messageOptions.containsGif) {
|
||||||
if (messageOptions.processingGif) {
|
if (messageOptions.processingGif) {
|
||||||
imageCount = message.action.length + 1; // "+1" for the GIF that'll finish processing soon
|
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);
|
message.action.forEach(addImage);
|
||||||
document.getElementById('p0').disabled = true;
|
document.getElementById('p0').disabled = true;
|
||||||
} else {
|
} else {
|
||||||
|
var gifPath = message.action[0].localPath;
|
||||||
document.getElementById('p0').disabled = false;
|
document.getElementById('p0').disabled = false;
|
||||||
document.getElementById('p0img').src = message.action[0].localPath;
|
document.getElementById('p0img').src = gifPath;
|
||||||
|
paths[0].localPath = gifPath;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
imageCount = message.action.length;
|
imageCount = message.action.length;
|
||||||
|
|
Loading…
Reference in a new issue