Fix download button not working in clones. #906

This commit is contained in:
ccd0 2016-05-16 22:25:21 -07:00
parent 82752f9368
commit d44b206e44

View File

@ -7,7 +7,11 @@ FileInfo =
cb: @node
node: ->
return if !@file or @isClone
return unless @file
if @isClone
for a in $$ '.file-info .download-button', @file.text
$.on a, 'click', ImageCommon.download
return
oldInfo = $.el 'span', {className: 'fileText-original'}
$.prepend @file.link.parentNode, oldInfo