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
ece559d947
commit
235f56fd4d
1 changed files with 16 additions and 2 deletions
18
client.js
18
client.js
|
|
@ -435,12 +435,26 @@ CloudClient.Util = (function(){
|
|||
if(!pCurrentFile)
|
||||
this.addCloudStatus({
|
||||
code : -1,
|
||||
msg : 'Error pCurrentFile could not be none'
|
||||
msg : 'Error pCurrentFile in' +
|
||||
'setCurrentFile' +
|
||||
'could not be none'
|
||||
});
|
||||
|
||||
return pCurrentFile.className = CloudCommander.CURRENT_FILE;
|
||||
};
|
||||
|
||||
this.unSetCurrentFile = function(pCurrentFile){
|
||||
if(!pCurrentFile)
|
||||
this.addCloudStatus({
|
||||
code : -1,
|
||||
msg : 'Error pCurrentFile in' +
|
||||
'setCurrentFile' +
|
||||
'could not be none'
|
||||
});
|
||||
|
||||
return pCurrentFile.className = '';
|
||||
};
|
||||
|
||||
this.isCurrentFile = function(pCurrentFile){
|
||||
if(!pCurrentFile)
|
||||
this.addCloudStatus({
|
||||
|
|
@ -689,7 +703,7 @@ CloudClient._setCurrent=(function(){
|
|||
},400);
|
||||
}
|
||||
else{
|
||||
lCurrentFile.className='';
|
||||
Util.unSetCurrentFile(lCurrentFile);
|
||||
|
||||
/* устанавливаем курсор на файл,
|
||||
* на который нажали */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue