summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrooks Becton <broabect@ut.utm.edu>2017-10-28 10:15:05 -0500
committerBrooks Becton <broabect@ut.utm.edu>2017-10-28 10:15:05 -0500
commitd9705a0ec4c6e1296769b87dcac8912c34002c10 (patch)
treec72284de6e4d00b2aa8fc14e5d07af371ea6cc09
parent5c1ace7293b6929466311387b24891149c992dc6 (diff)
downloadwekan-d9705a0ec4c6e1296769b87dcac8912c34002c10.tar.gz
wekan-d9705a0ec4c6e1296769b87dcac8912c34002c10.tar.bz2
wekan-d9705a0ec4c6e1296769b87dcac8912c34002c10.zip
Added swipebox package and added it to attachement images
Also removed '.js-open-viewer' and it's styling stub
-rw-r--r--.meteor/packages1
-rw-r--r--.meteor/versions1
-rw-r--r--client/components/cards/attachments.jade4
-rw-r--r--client/components/cards/attachments.js3
4 files changed, 4 insertions, 5 deletions
diff --git a/.meteor/packages b/.meteor/packages
index 7c04f207..7e67c10d 100644
--- a/.meteor/packages
+++ b/.meteor/packages
@@ -79,3 +79,4 @@ shell-server@0.2.3
simple:rest-accounts-password
useraccounts:core
email@1.2.3
+horka:swipebox
diff --git a/.meteor/versions b/.meteor/versions
index 689362ea..38ee1e3f 100644
--- a/.meteor/versions
+++ b/.meteor/versions
@@ -58,6 +58,7 @@ es5-shim@4.6.15
fastclick@1.0.13
fortawesome:fontawesome@4.7.0
geojson-utils@1.0.10
+horka:swipebox@1.0.2
hot-code-push@1.0.4
html-tools@1.0.11
htmljs@1.0.11
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);
},