|
@@ -11,7 +11,7 @@ BlazeComponent.extendComponent({
|
|
|
},
|
|
|
|
|
|
id() {
|
|
|
- return this._id;
|
|
|
+ return this._id;
|
|
|
},
|
|
|
|
|
|
// XXX Flow components allow us to avoid creating these two setter methods by
|
|
@@ -184,7 +184,7 @@ BlazeComponent.extendComponent({
|
|
|
return [{
|
|
|
submit(evt) {
|
|
|
evt.preventDefault();
|
|
|
- var titleInput = this.find('.list-name-input');
|
|
|
+ let titleInput = this.find('.list-name-input');
|
|
|
if (titleInput) {
|
|
|
const title = titleInput.value.trim();
|
|
|
if (title) {
|
|
@@ -200,7 +200,6 @@ BlazeComponent.extendComponent({
|
|
|
} else {
|
|
|
titleInput = this.find('.swimlane-name-input');
|
|
|
const title = titleInput.value.trim();
|
|
|
- console.log(title);
|
|
|
if (title) {
|
|
|
Swimlanes.insert({
|
|
|
title,
|
|
@@ -214,27 +213,7 @@ BlazeComponent.extendComponent({
|
|
|
}
|
|
|
},
|
|
|
}];
|
|
|
- },/*
|
|
|
- if (titleInput) {
|
|
|
- const title = titleInput.value.trim();
|
|
|
- if (title) {
|
|
|
- Lists.insert({
|
|
|
- title,
|
|
|
- boardId: Session.get('currentBoard'),
|
|
|
- sort: $('.list').length,
|
|
|
- });
|
|
|
-
|
|
|
- titleInput.value = '';
|
|
|
- titleInput.focus();
|
|
|
- }
|
|
|
- } else {
|
|
|
- titleInput = this.find('.swimlane-name-input');
|
|
|
- console.log(titleInput);
|
|
|
- }
|
|
|
- },
|
|
|
- }];
|
|
|
},
|
|
|
- */
|
|
|
}).register('addListAndSwimlaneForm');
|
|
|
|
|
|
Template.swimlane.helpers({
|