mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 17:05:17 +00:00
minor changes
This commit is contained in:
parent
56dc73f431
commit
aa18b3867b
1 changed files with 5 additions and 3 deletions
|
|
@ -241,9 +241,11 @@ CloudClient._loadDir=(function(pLink,pNeedRefresh){
|
|||
|
||||
/*
|
||||
* Function edits file name
|
||||
*
|
||||
* @pParent - parent element
|
||||
*/
|
||||
CloudClient._editFileName = (function(){
|
||||
var lA = this.getElementsByTagName('a');
|
||||
CloudClient._editFileName = (function(pParent){
|
||||
var lA = pParent.getElementsByTagName('a');
|
||||
if (lA.length && lA.textContent !== '..' &&
|
||||
event.keyCode !== 13/*enter*/){
|
||||
lA[0].contentEditable = true;
|
||||
|
|
@ -309,7 +311,7 @@ CloudClient._setCurrent=(function(){
|
|||
* double click event happend
|
||||
*/
|
||||
if(lParent.className === CloudClient.CURRENT_FILE)
|
||||
CloudClient._editFileName();
|
||||
CloudClient._editFileName(lParent);
|
||||
},400);
|
||||
}
|
||||
else{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue