mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 01:47:35 +00:00
moved unSetCurrentfile to setCurrent file
All the time one of files must be current, so wen we setting up some file current, file that was previously current must be unset automatically.
This commit is contained in:
parent
e390f0ed76
commit
e2522dbc21
1 changed files with 4 additions and 5 deletions
|
|
@ -495,6 +495,8 @@ CloudClient.Util = (function(){
|
|||
'could not be none'
|
||||
});
|
||||
|
||||
this.unSetCurrentFile(this.getCurrentFile());
|
||||
|
||||
return pCurrentFile.className = CloudCommander.CURRENT_FILE;
|
||||
};
|
||||
|
||||
|
|
@ -503,7 +505,7 @@ CloudClient.Util = (function(){
|
|||
this.addCloudStatus({
|
||||
code : -1,
|
||||
msg : 'Error pCurrentFile in' +
|
||||
'setCurrentFile' +
|
||||
'unSetCurrentFile' +
|
||||
'could not be none'
|
||||
});
|
||||
|
||||
|
|
@ -758,9 +760,7 @@ CloudClient._setCurrent=(function(){
|
|||
CloudClient._editFileName(lParent);
|
||||
},400);
|
||||
}
|
||||
else{
|
||||
Util.unSetCurrentFile(lCurrentFile);
|
||||
|
||||
else{
|
||||
/* устанавливаем курсор на файл,
|
||||
* на который нажали */
|
||||
Util.setCurrentFile(this);
|
||||
|
|
@ -810,7 +810,6 @@ CloudClient._currentToParent = (function(pDirName){
|
|||
* set it to current file
|
||||
*/
|
||||
if(lRootDir){
|
||||
Util.unSetCurrentFile(lCurrentFile);
|
||||
Util.setCurrentFile(lRootDir);
|
||||
lRootDir.scrollIntoViewIfNeeded();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue