talos/pseudositer — Issue #2: default download handler should open up notification to download file
Author: talos
Created: 2011-10-12 14:01:44+00:00
State: open

Currently, the static download handler creates a link to the downloadable content inside the content area. This means that users have to click twice to download a file -- first to see the link, then again on the link.

This is the current download code:

download = ( evt, dfd, pathToFile ) ->
log "download( #{dfd}, #{pathToFile} )"

dfd.resolve $( '' ).text( pathToFile ).attr 'href', pathToFile

undefined

Instead, the user should be prompted immediately to download the file at pathToFile. The content area should probably be left empty.

This function would like this:

download = ( evt, dfd, pathToFile ) ->
log "download( #{dfd}, #{pathToFile} )"

# [ Prompt user to download ]

dfd.resolve()

undefined