summaryrefslogtreecommitdiffstats
path: root/client/components/rules/triggers/boardTriggers.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/components/rules/triggers/boardTriggers.js')
-rw-r--r--client/components/rules/triggers/boardTriggers.js29
1 files changed, 13 insertions, 16 deletions
diff --git a/client/components/rules/triggers/boardTriggers.js b/client/components/rules/triggers/boardTriggers.js
index 1a7948de..f9aa57cb 100644
--- a/client/components/rules/triggers/boardTriggers.js
+++ b/client/components/rules/triggers/boardTriggers.js
@@ -1,7 +1,7 @@
BlazeComponent.extendComponent({
onCreated() {
this.provaVar = new ReactiveVar('');
- this.currentPopupTriggerId = "def";
+ this.currentPopupTriggerId = 'def';
this.cardTitleFilters = {};
},
setNameFilter(name){
@@ -11,12 +11,12 @@ BlazeComponent.extendComponent({
events() {
return [{
'click .js-open-card-title-popup'(event){
- var funct = Popup.open('boardCardTitle');
- let divId = $(event.currentTarget.parentNode.parentNode).attr("id");
- console.log("current popup");
+ const funct = Popup.open('boardCardTitle');
+ const divId = $(event.currentTarget.parentNode.parentNode).attr('id');
+ console.log('current popup');
console.log(this.currentPopupTriggerId);
this.currentPopupTriggerId = divId;
- funct.call(this,event);
+ funct.call(this, event);
},
'click .js-add-create-trigger' (event) {
const desc = Utils.getTriggerActionDesc(event, this);
@@ -24,17 +24,17 @@ BlazeComponent.extendComponent({
const listName = this.find('#create-list-name').value;
const swimlaneName = this.find('#create-swimlane-name').value;
const boardId = Session.get('currentBoard');
- const divId = $(event.currentTarget.parentNode).attr("id");
+ const divId = $(event.currentTarget.parentNode).attr('id');
const cardTitle = this.cardTitleFilters[divId];
// move to generic funciont
datas.triggerVar.set({
- activityType: 'createCard',
- boardId,
- cardTitle,
- swimlaneName,
- listName,
- desc,
- });
+ activityType: 'createCard',
+ boardId,
+ cardTitle,
+ swimlaneName,
+ listName,
+ desc,
+ });
},
'click .js-add-moved-trigger' (event) {
const datas = this.data();
@@ -105,9 +105,6 @@ BlazeComponent.extendComponent({
}).register('boardTriggers');
-
-
-
Template.boardCardTitlePopup.events({
submit(evt, tpl) {
const title = tpl.$('.js-card-filter-name').val().trim();