nextapp.echo.filetransfer.webcontainer.resource.Sync.DownloadCommand.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of echo3-filetransfer-webcontainer Show documentation
Show all versions of echo3-filetransfer-webcontainer Show documentation
Echo File Transfer Web Container
The newest version!
/**
* Command exeecution peer: Download
*/
Echo.RemoteClient.CommandExec.Download = {
execute: function(client, commandData) {
if (!commandData.uri) {
throw new Error("uri not specified in DownloadCommand.");
}
top.location = commandData.uri;
}
};
Echo.RemoteClient.CommandExecProcessor.registerPeer("nextapp.echo.filetransfer.app.DownloadCommand",
Echo.RemoteClient.CommandExec.Download);