refactored

This commit is contained in:
coderaiser 2013-01-16 10:46:21 -05:00
parent dd2e067122
commit d276b76e4b
2 changed files with 7 additions and 7 deletions

View file

@ -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",

View file

@ -420,7 +420,7 @@ Util = exports || {};
var lRet;
if(pCondition)
Util.exec(pCallBack);
Util.exec(pCallBack, pCondition);
else
Util.exec(pFunc, pCallBack);