From 037ffa55cb97672d2aff242a38d2716fce7e76ee Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 3 Aug 2012 17:06:51 +0300 Subject: [PATCH] Update client.js --- client.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client.js b/client.js index b9cd0bd9..c1e62ab7 100644 --- a/client.js +++ b/client.js @@ -326,7 +326,8 @@ CloudClient.Util = (function(){ /* show loading icon * * if it not showed */ var lCurrent = lCurrent.firstChild.nextSibling; - if(lCurrent !== lLoadingImage.parentElement) + var lParent = lLoadingImage.parentElement; + if(lParent && lParent !== lCurrent) document.appendChild(lLoadingImage); } }