added function showLoad, thet shows loading image

This commit is contained in:
coderaiser 2012-08-03 17:45:54 +03:00
parent 844b803546
commit 4954ea7ff4

View file

@ -129,20 +129,7 @@ CloudCommander.Editor.CodeMirror.show = (function(){
}
}
/* показываем гиф загрузки возле пути папки сверху*/
var lLoadingImage = CloudCommander._images.loading();
var lErrorImage = CloudCommander._images.error();
lLoadingImage.className = 'icon loading';/* показываем загрузку*/
lErrorImage.className = 'icon error hidden';/* прячем ошибку */
/* show loading icon *
* if it not showed */
var lCurrent = lCurrent.firstChild.nextSibling;
if(lCurrent !== lLoadingImage.parentElement)
lCurrent.appendChild(lLoadingImage);
this.showLoad();
this.loading = true;
var lParent = this;
/* reading data from current file */