mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Fixed Remove Cover button gives JS error.
Thanks to tsukasa1989 and xet7 ! Fixes #3400
This commit is contained in:
parent
d62bed1536
commit
28850e5510
1 changed files with 48 additions and 54 deletions
|
|
@ -1,13 +1,4 @@
|
||||||
Template.attachmentsGalery.events({});
|
Template.attachmentsGalery.events({
|
||||||
|
|
||||||
BlazeComponent.extendComponent({
|
|
||||||
isBoardAdmin() {
|
|
||||||
return Meteor.user().isBoardAdmin();
|
|
||||||
},
|
|
||||||
|
|
||||||
events() {
|
|
||||||
return [
|
|
||||||
{
|
|
||||||
'click .js-add-attachment': Popup.open('cardAttachments'),
|
'click .js-add-attachment': Popup.open('cardAttachments'),
|
||||||
'click .js-confirm-delete': Popup.afterConfirm(
|
'click .js-confirm-delete': Popup.afterConfirm(
|
||||||
'attachmentDelete',
|
'attachmentDelete',
|
||||||
|
|
@ -52,10 +43,13 @@ BlazeComponent.extendComponent({
|
||||||
if (img.src === url && img.complete) rePosPopup();
|
if (img.src === url && img.complete) rePosPopup();
|
||||||
else img.onload = rePosPopup;
|
else img.onload = rePosPopup;
|
||||||
},
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
Template.attachmentsGalery.helpers({
|
||||||
|
isBoardAdmin() {
|
||||||
|
return Meteor.user().isBoardAdmin();
|
||||||
},
|
},
|
||||||
];
|
});
|
||||||
},
|
|
||||||
}).register('attachmentsGalery');
|
|
||||||
|
|
||||||
Template.previewAttachedImagePopup.events({
|
Template.previewAttachedImagePopup.events({
|
||||||
'click .js-large-image-clicked'() {
|
'click .js-large-image-clicked'() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue