mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
Update lib/client/editor.js
This commit is contained in:
parent
fa774a5777
commit
d1f287f397
1 changed files with 8 additions and 3 deletions
|
|
@ -135,9 +135,14 @@ CloudCommander.Editor.CodeMirror.show = (function(){
|
|||
|
||||
lLoadingImage.className = 'icon loading';/* показываем загрузку*/
|
||||
lErrorImage.className = 'icon error hidden';/* прячем ошибку */
|
||||
/* show loading icon */
|
||||
lCurrent.firstChild.nextSibling.appendChild(lLoadingImage);
|
||||
|
||||
|
||||
/* show loading icon *
|
||||
* if it not showed */
|
||||
var lCurrent = lCurrent.firstChild.nextSibling;
|
||||
if(lCurrent !== lLoadingImage.parentElement)
|
||||
appendChild(lLoadingImage);
|
||||
|
||||
this.loading = true;
|
||||
var lParent = this;
|
||||
/* reading data from current file */
|
||||
|
|
@ -200,7 +205,7 @@ CloudCommander.Editor.CodeMirror.hide = (function(pParent) {
|
|||
|
||||
CloudCommander.Editor.Keys = (function(){
|
||||
"use strict";
|
||||
|
||||
|
||||
/* loading js and css of CodeMirror */
|
||||
this.CodeMirror.show(this.CodeMirror);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue