mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 01:17:18 +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
c81fda33b9
commit
3fe4b010ee
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