Fix download button not working in clones. #906
This commit is contained in:
parent
82752f9368
commit
d44b206e44
@ -7,7 +7,11 @@ FileInfo =
|
|||||||
cb: @node
|
cb: @node
|
||||||
|
|
||||||
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'}
|
oldInfo = $.el 'span', {className: 'fileText-original'}
|
||||||
$.prepend @file.link.parentNode, oldInfo
|
$.prepend @file.link.parentNode, oldInfo
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user