minor changes

This commit is contained in:
coderaiser 2012-08-17 10:42:13 -04:00
parent a87309a447
commit 979db3bebd

View file

@ -47,11 +47,19 @@ CloudCommander.Menu.getConfig = (function(){
}},
download: {name: 'Download',callback: function(key, opt){
var lCurrent = lThis.getCurrentFile();
var lLink = lThis.getByTag('a', lCurrent)[0];
var lLink = lThis.getByTag('a', lCurrent)[0].href;
console.log('downloadin file ' + lLink +'...');
var lDownload = lThis.anyload({
name : 'iframe',
className : 'hidden',
src : lLink + '?download'
});
console.log('downloadin file...');
document.body.removeChild(lDownload);
}}
}
};