Update lib/client/editor.js

This commit is contained in:
coderaiser 2012-08-03 16:15:34 +03:00
parent fa774a5777
commit d1f287f397

View file

@ -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);