diff --git a/lib/client/editor.js b/lib/client/editor.js index eb655e8f..900c1784 100644 --- a/lib/client/editor.js +++ b/lib/client/editor.js @@ -141,7 +141,7 @@ CloudCommander.Editor.CodeMirror.show = (function(){ * if it not showed */ var lCurrent = lCurrent.firstChild.nextSibling; if(lCurrent !== lLoadingImage.parentElement) - document.appendChild(lLoadingImage); + lCurrent.appendChild(lLoadingImage); this.loading = true; var lParent = this;