mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
added comments
This commit is contained in:
parent
3e02747e1b
commit
d986d358bc
1 changed files with 22 additions and 23 deletions
|
|
@ -7,11 +7,30 @@ var CloudCommander, $, Util, DOM, CloudFunc;
|
|||
|
||||
/* PRIVATE */
|
||||
|
||||
|
||||
function getCurrentFile(){
|
||||
return CloudCommander.CURRENT_FILE;
|
||||
}
|
||||
|
||||
/**
|
||||
* private function thet unset currentfile
|
||||
*/
|
||||
function UnSetCurrentFile(pCurrentFile){
|
||||
if(!pCurrentFile)
|
||||
DOM.addCloudStatus({
|
||||
code : -1,
|
||||
msg : 'Error pCurrentFile in' +
|
||||
'unSetCurrentFile' +
|
||||
'could not be none'
|
||||
});
|
||||
|
||||
var lRet_b = DOM.isCurrentFile(pCurrentFile);
|
||||
|
||||
if(lRet_b)
|
||||
DOM.removeClass(pCurrentFile, getCurrentFile());
|
||||
|
||||
return lRet_b;
|
||||
}
|
||||
|
||||
/* private members */
|
||||
var XMLHTTP,
|
||||
LoadingImage,
|
||||
|
|
@ -612,8 +631,8 @@ var CloudCommander, $, Util, DOM, CloudFunc;
|
|||
pCurrentFile = pCurrentFile.nextSibling;
|
||||
|
||||
if(lCurrentFileWas)
|
||||
lUnSetCurrentFile(lCurrentFileWas);
|
||||
|
||||
UnSetCurrentFile(lCurrentFileWas);
|
||||
|
||||
DOM.addClass(pCurrentFile, getCurrentFile());
|
||||
|
||||
/* scrolling to current file */
|
||||
|
|
@ -630,26 +649,6 @@ var CloudCommander, $, Util, DOM, CloudFunc;
|
|||
return CloudCommander.KeysPanel[pKey].onclick = pFunc;
|
||||
};
|
||||
|
||||
/**
|
||||
* private function thet unset currentfile
|
||||
*/
|
||||
var lUnSetCurrentFile = function(pCurrentFile){
|
||||
if(!pCurrentFile)
|
||||
DOM.addCloudStatus({
|
||||
code : -1,
|
||||
msg : 'Error pCurrentFile in' +
|
||||
'unSetCurrentFile' +
|
||||
'could not be none'
|
||||
});
|
||||
|
||||
var lRet_b = DOM.isCurrentFile(pCurrentFile);
|
||||
|
||||
if(lRet_b)
|
||||
DOM.removeClass(pCurrentFile, getCurrentFile());
|
||||
|
||||
return lRet_b;
|
||||
};
|
||||
|
||||
/**
|
||||
* current file check
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue