mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 01:17:18 +00:00
added ability rename files
This commit is contained in:
parent
c56c3d385b
commit
874c311f47
1 changed files with 13 additions and 4 deletions
17
client.js
17
client.js
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
/* если мы попали сюда с энтера*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue