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
9a4a4c84de
commit
205d58a58e
1 changed files with 9 additions and 6 deletions
|
|
@ -511,8 +511,8 @@ var CloudCommander, $, Util, DOM, CloudFunc;
|
|||
console.log(lText);
|
||||
}
|
||||
};
|
||||
|
||||
DOM.getCurrentFile = function(){
|
||||
|
||||
DOM.getCurrentFile = function(){
|
||||
var lCurrent = DOM.getByClass(getCurrentFile())[0];
|
||||
if(!lCurrent)
|
||||
DOM.addCloudStatus({
|
||||
|
|
@ -525,11 +525,11 @@ var CloudCommander, $, Util, DOM, CloudFunc;
|
|||
return lCurrent;
|
||||
};
|
||||
|
||||
DOM.getRefreshButton = function(){
|
||||
DOM.getRefreshButton = function(){
|
||||
var lPanel = DOM.getPanel(),
|
||||
lRefresh = DOM.getByClass(CloudFunc.REFRESHICON, lPanel);
|
||||
|
||||
if (lRefresh.length)
|
||||
if (lRefresh.length)
|
||||
lRefresh = lRefresh[0];
|
||||
else {
|
||||
DOM.addCloudStatus({
|
||||
|
|
@ -574,8 +574,11 @@ var CloudCommander, $, Util, DOM, CloudFunc;
|
|||
return lRet_b;
|
||||
};
|
||||
|
||||
/**
|
||||
* set onclick handler on button f1-f10
|
||||
*/
|
||||
DOM.setButtonKey = function(pKey, pFunc){
|
||||
cloudcmd.KeysPanel[pKey].onclick = pFunc;
|
||||
return cloudcmd.KeysPanel[pKey].onclick = pFunc;
|
||||
};
|
||||
|
||||
var lUnSetCurrentFile = function(pCurrentFile){
|
||||
|
|
@ -606,7 +609,7 @@ var CloudCommander, $, Util, DOM, CloudFunc;
|
|||
|
||||
var lCurrentFileClass = pCurrentFile.className,
|
||||
lIsCurrent = lCurrentFileClass.indexOf(getCurrentFile()) >= 0;
|
||||
|
||||
|
||||
return lIsCurrent;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue