                         file: file
                         editable: @props.editable
                         delete: => @deleteFile file
-                        display: => @displayFile file
+                        display: (params) => @displayFile file, params
                         messageID: @props.messageID
 
             if @props.editable

                if @props.editable
                    i className: "fa fa-times delete", onClick: @doDelete

    doDisplay: (e) ->
        e.preventDefault()
        e.stopPropagation()
        @props.display()

    doDelete: (e) ->
        e.preventDefault()


        @props.valueLink.requestChange files

    displayFile: (file, params={}) ->
        if (url = getFileURL file) window.open url + serializeData(params)
        else console.error "broken file : ", file

    render: ->
