diff options
Diffstat (limited to 'client/components/cards/events.js')
-rw-r--r-- | client/components/cards/events.js | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/client/components/cards/events.js b/client/components/cards/events.js index 9c270e8d..21d628df 100644 --- a/client/components/cards/events.js +++ b/client/components/cards/events.js @@ -1,64 +1,3 @@ -// Template.cards.events({ -// // 'click .js-cancel': function(event, t) { -// // var composer = t.$('.card-composer'); - -// // // Keep the old value in memory to display it again next time -// // var inputCacheKey = "addCard-" + this.listId; -// // var oldValue = composer.find('.js-card-title').val(); -// // InputsCache.set(inputCacheKey, oldValue); - -// // // add composer hide class -// // composer.addClass('hide'); -// // composer.find('.js-card-title').val(''); - -// // // remove hide open link class -// // $('.js-open-card-composer').removeClass('hide'); -// // }, -// 'submit': function(evt, tpl) { -// evt.preventDefault(); -// var textarea = $(evt.currentTarget).find('textarea'); -// var title = textarea.val(); -// var lastCard = tpl.find('.js-minicard:last-child'); -// var sort; -// if (lastCard === null) { -// sort = 0; -// } else { -// sort = Blaze.getData(lastCard).sort + 1; -// } -// // debugger - -// // Clear the form in-memory cache -// // var inputCacheKey = "addCard-" + this.listId; -// // InputsCache.set(inputCacheKey, ''); - -// // title trim if not empty then -// if ($.trim(title)) { -// Cards.insert({ -// title: title, -// listId: Template.currentData().listId, -// boardId: Template.currentData().board._id, -// sort: sort -// }, function(err, _id) { -// // In case the filter is active we need to add the newly -// // inserted card in the list of exceptions -- cards that are -// // not filtered. Otherwise the card will disappear instantly. -// // See https://github.com/libreboard/libreboard/issues/80 -// Filter.addException(_id); -// }); - -// // empty and focus. -// textarea.val('').focus(); - -// // focus complete then scroll top -// Utils.Scroll(tpl.find('.js-minicards')).top(1000, true); -// } -// } -// }); - -// Template.cards.events({ -// 'click .member': Popup.open('cardMember') -// }); - Template.cardMemberPopup.events({ 'click .js-remove-member': function() { Cards.update(this.cardId, {$pull: {members: this.userId}}); |