mirror of
https://github.com/wekan/wekan.git
synced 2025-12-25 03:40:13 +01:00
27 lines
498 B
JavaScript
27 lines
498 B
JavaScript
Template.resultCard.helpers({
|
|
userId() {
|
|
return Meteor.userId();
|
|
},
|
|
});
|
|
|
|
BlazeComponent.extendComponent({
|
|
clickOnMiniCard(evt) {
|
|
evt.preventDefault();
|
|
Session.set('popupCard', this.currentData()._id);
|
|
this.cardDetailsPopup(evt);
|
|
},
|
|
|
|
cardDetailsPopup(event) {
|
|
if (!Popup.isOpen()) {
|
|
Popup.open("cardDetails")(event);
|
|
}
|
|
},
|
|
|
|
events() {
|
|
return [
|
|
{
|
|
'click .js-minicard': this.clickOnMiniCard,
|
|
},
|
|
];
|
|
},
|
|
}).register('resultCard');
|