added ability rename files

This commit is contained in:
coderaiser 2012-07-31 03:30:53 -04:00
parent a5c6b56347
commit e1b7175390

View file

@ -256,10 +256,19 @@ CloudClient._setCurrent=(function(){
if(this.className!=='path' &&
this.className!=='fm_header'){
lCurrentFile[0].className='';
/* устанавливаем курсор на файл,
* на который нажали */
this.className=CloudClient.CURRENT_FILE;
if (this.className === CloudClient.CURRENT_FILE){
var lA = this.getEgetElementsByTagName('a');
if (lA.length){
lA[0].contentEditable = true;
CloudCommander.keyBinding = false;
}
}
else{
lCurrentFile[0].className='';
/* устанавливаем курсор на файл,
* на который нажали */
this.className = CloudClient.CURRENT_FILE;
}
}
}
/* если мы попали сюда с энтера*/