mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
refactored
This commit is contained in:
parent
dd2e067122
commit
d276b76e4b
2 changed files with 7 additions and 7 deletions
|
|
@ -452,15 +452,15 @@ CloudCmd._changeLinks = function(pPanelID){
|
|||
* in Chrome (HTML5)
|
||||
*/
|
||||
lOnDragStart_f = function(pEvent){
|
||||
var lElement = pEvent.target,
|
||||
lLink = lElement.href,
|
||||
lName = lElement.textContent,
|
||||
var lElement = pEvent.target,
|
||||
lLink = lElement.href,
|
||||
lName = lElement.textContent,
|
||||
/* if it's directory - adding json extension */
|
||||
lType = lElement.parentElement.nextSibling;
|
||||
lType = lElement.parentElement.nextSibling;
|
||||
|
||||
if(lType && lType.textContent === '<dir>'){
|
||||
lLink = lLink.replace(lNoJS_s,'');
|
||||
lName += '.json';
|
||||
lLink = lLink.replace(lNoJS_s,'');
|
||||
lName += '.json';
|
||||
}
|
||||
|
||||
pEvent.dataTransfer.setData("DownloadURL",
|
||||
|
|
|
|||
|
|
@ -420,7 +420,7 @@ Util = exports || {};
|
|||
var lRet;
|
||||
|
||||
if(pCondition)
|
||||
Util.exec(pCallBack);
|
||||
Util.exec(pCallBack, pCondition);
|
||||
else
|
||||
Util.exec(pFunc, pCallBack);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue