From dcc64f44f9f81d32c8071c6bdac86546eaeb57a0 Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Wed, 27 May 2015 17:17:00 +0200 Subject: UI improvements * Implement visibility choice on board creation; * Rework the board header bar. Remove links to un-implemented features; * Implement a board star counter (visible if the board have >2 stars); * Define a new icon (a thin cross) to close elements; * Remove $(document).on('mouseover') event handlers that were basically fired hundreds of times for nothing, we now define a proper Tracker dependency to execute jquery-ui plugin initialization only when something has changed; * Bug fixes related to list scrolling. --- client/components/cards/minicard.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 client/components/cards/minicard.js (limited to 'client/components/cards/minicard.js') diff --git a/client/components/cards/minicard.js b/client/components/cards/minicard.js new file mode 100644 index 00000000..b339580b --- /dev/null +++ b/client/components/cards/minicard.js @@ -0,0 +1,14 @@ +// Template.cards.events({ +// 'click .member': Popup.open('cardMember') +// }); + + +BlazeComponent.extendComponent({ + template: function() { + return 'minicard'; + }, + + isSelected: function() { + return Session.equals('currentCard', this.currentData()._id); + } +}).register('minicard'); -- cgit v1.2.3-1-g7c22