summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2015-09-02 20:16:53 +0200
committerMaxime Quandalle <maxime@quandalle.com>2015-09-02 20:16:53 +0200
commited35a88a5689ed460d92a4990bc4882b7934854f (patch)
treee54037535b14893a032d82dda0466d3815a28144 /client
parent4594caf9b7206d5e831980caac9781c8df8e2744 (diff)
downloadwekan-ed35a88a5689ed460d92a4990bc4882b7934854f.tar.gz
wekan-ed35a88a5689ed460d92a4990bc4882b7934854f.tar.bz2
wekan-ed35a88a5689ed460d92a4990bc4882b7934854f.zip
Fix attachments downloading
Fixes #219 Fixes #256
Diffstat (limited to 'client')
-rw-r--r--client/components/cards/attachments.jade2
-rw-r--r--client/components/cards/attachments.js9
2 files changed, 7 insertions, 4 deletions
diff --git a/client/components/cards/attachments.jade b/client/components/cards/attachments.jade
index 4170d195..783178e6 100644
--- a/client/components/cards/attachments.jade
+++ b/client/components/cards/attachments.jade
@@ -23,7 +23,7 @@ template(name="attachmentsGalery")
p.attachment-details
= name
span.attachment-details-actions
- a.js-download
+ a.js-download(href="{{url download=true}}")
i.fa.fa-download
| {{_ 'download'}}
if isImage
diff --git a/client/components/cards/attachments.js b/client/components/cards/attachments.js
index db0ecb8e..9e299cc0 100644
--- a/client/components/cards/attachments.js
+++ b/client/components/cards/attachments.js
@@ -6,11 +6,14 @@ Template.attachmentsGalery.events({
Popup.close();
}
),
- // If we let this event bubble, Iron-Router will handle it and empty the
- // page content, see #101.
- 'click .js-open-viewer, click .js-download': function(event) {
+ // If we let this event bubble, FlowRouter will handle it and empty the page
+ // content, see #101.
+ 'click .js-download': function(event) {
event.stopPropagation();
},
+ 'click .js-open-viewer': function() {
+ // XXX Not implemented!
+ },
'click .js-add-cover': function() {
Cards.update(this.cardId, { $set: { coverId: this._id } });
},