summaryrefslogtreecommitdiffstats
path: root/client/components/cards/events.js
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2015-05-27 17:17:00 +0200
committerMaxime Quandalle <maxime@quandalle.com>2015-05-27 17:23:25 +0200
commitdcc64f44f9f81d32c8071c6bdac86546eaeb57a0 (patch)
treeb8977727227a3ddbb2874ea3f86f1e26e03c8835 /client/components/cards/events.js
parent42f6dc686f313ba294e3cbcfb0ebde50678580fe (diff)
downloadwekan-dcc64f44f9f81d32c8071c6bdac86546eaeb57a0.tar.gz
wekan-dcc64f44f9f81d32c8071c6bdac86546eaeb57a0.tar.bz2
wekan-dcc64f44f9f81d32c8071c6bdac86546eaeb57a0.zip
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.
Diffstat (limited to 'client/components/cards/events.js')
-rw-r--r--client/components/cards/events.js61
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}});