mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
added function showLoad, thet shows loading image
This commit is contained in:
parent
844b803546
commit
4954ea7ff4
1 changed files with 1 additions and 14 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue