From d9705a0ec4c6e1296769b87dcac8912c34002c10 Mon Sep 17 00:00:00 2001 From: Brooks Becton Date: Sat, 28 Oct 2017 10:15:05 -0500 Subject: Added swipebox package and added it to attachement images Also removed '.js-open-viewer' and it's styling stub --- client/components/cards/attachments.jade | 4 ++-- client/components/cards/attachments.js | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'client') diff --git a/client/components/cards/attachments.jade b/client/components/cards/attachments.jade index e35b364a..c8442691 100644 --- a/client/components/cards/attachments.jade +++ b/client/components/cards/attachments.jade @@ -21,11 +21,11 @@ template(name="attachmentDeletePopup") template(name="attachmentsGalery") .attachments-galery each attachments - a.attachment-item.js-open-viewer(title="{{_ 'added'}} {{ moment uploadedAt }}") + a.attachment-item.swipebox(href="{{url}}" title="{{name}}") .attachment-thumbnail if isUploaded if isImage - img.attachment-thumbnail-img.js-preview-image(src="{{url}}") + img.attachment-thumbnail-img(src="{{url}}") else span.attachment-thumbnail-ext= extension else diff --git a/client/components/cards/attachments.js b/client/components/cards/attachments.js index 95cb9f55..36e8a5ec 100644 --- a/client/components/cards/attachments.js +++ b/client/components/cards/attachments.js @@ -11,9 +11,6 @@ Template.attachmentsGalery.events({ 'click .js-download'(event) { event.stopPropagation(); }, - 'click .js-open-viewer'() { - // XXX Not implemented! - }, 'click .js-add-cover'() { Cards.findOne(this.cardId).setCover(this._id); }, -- cgit v1.2.3-1-g7c22