mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 07:20:12 +01:00
Added swipebox package and added it to attachement images
Also removed '.js-open-viewer' and it's styling stub
This commit is contained in:
parent
dd1a8ade5e
commit
d48043c7ee
4 changed files with 4 additions and 5 deletions
|
|
@ -79,3 +79,4 @@ shell-server@0.2.3
|
|||
simple:rest-accounts-password
|
||||
useraccounts:core
|
||||
email@1.2.3
|
||||
horka:swipebox
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue