mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 08:56:20 +00:00
minor changes
This commit is contained in:
parent
a87309a447
commit
979db3bebd
1 changed files with 10 additions and 2 deletions
|
|
@ -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);
|
||||
}}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue