mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
minor changes
This commit is contained in:
parent
726bed1522
commit
32aa77aa4b
1 changed files with 8 additions and 8 deletions
16
client.js
16
client.js
|
|
@ -551,12 +551,13 @@ CloudClient.Utils = (function(){
|
|||
lRet_b = false;
|
||||
}
|
||||
var lCurrentFileWas = this.getCurrentFile();
|
||||
if(lCurrentFileWas)
|
||||
this.unSetCurrentFile(lCurrentFileWas);
|
||||
|
||||
|
||||
var lClass = pCurrentFile.className;
|
||||
if (lClass !== 'path' &&
|
||||
lClass !== 'fm_header'){
|
||||
if(lCurrentFileWas)
|
||||
this.unSetCurrentFile(lCurrentFileWas);
|
||||
|
||||
pCurrentFile.className = CloudCommander.CURRENT_FILE;
|
||||
} else {
|
||||
this.addCloudStatus({
|
||||
|
|
@ -581,12 +582,11 @@ CloudClient.Utils = (function(){
|
|||
'unSetCurrentFile' +
|
||||
'could not be none'
|
||||
});
|
||||
var lRet_b = this.isCurrentFile(pCurrentFile);
|
||||
if(lRet_b)
|
||||
pCurrentFile.className = '';
|
||||
|
||||
if(this.isCurrentFile(pCurrentFile))
|
||||
pCurrentFile.className = '';
|
||||
|
||||
else return false;
|
||||
|
||||
return lRet_b;
|
||||
};
|
||||
|
||||
this.isCurrentFile = function(pCurrentFile){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue