Skip to content

Commit 3903fed

Browse files
author
mreishman
committed
small chagnes
1 parent a24dd3c commit 3903fed

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

core/js/main.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ function pollTwo(all, counterForSaveNew)
164164
$("."+arrayOfFiles[i]["Name"]+" .loadingSpinnerHeader").css('display', 'inline-block');
165165
$("."+arrayOfFiles[i]["Name"]+" .warningSpanHeader").css('display','none');
166166
$("."+arrayOfFiles[i]["Name"]+" .refreshImageDevBox").css('display', 'none');
167+
switchToColorLed(arrayOfFiles[i]["Name"], "yellow");
167168
tryHTTPForPollRequest(i);
168169
}
169170
else
@@ -544,11 +545,14 @@ function pollFailure(xhr, error, dataInnerPass)
544545
//get all with class of id
545546
var subBoxes = document.getElementsByClassName(dataInnerPass["id"]);
546547
var countOfBoxes = subBoxes.length;
547-
for(var i = 0; i < countOfBoxes; i++)
548+
if(countOfBoxes > 0)
548549
{
549-
nameForBackground = subBoxes[i].getElementsByClassName("innerFirstDevBox")[0].id;
550-
noSpaceName = nameForBackground.replace("innerFirstDevBox", "");
551-
pollFailureInner(xhr, error, noSpaceName, nameForBackground);
550+
for(var i = 0; i < countOfBoxes; i++)
551+
{
552+
nameForBackground = subBoxes[i].getElementsByClassName("innerFirstDevBox")[0].id;
553+
noSpaceName = nameForBackground.replace("innerFirstDevBox", "");
554+
pollFailureInner(xhr, error, noSpaceName, nameForBackground);
555+
}
552556
}
553557
}
554558
}

0 commit comments

Comments
 (0)