summaryrefslogtreecommitdiffstats
path: root/client/components/rules/rulesActions.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/components/rules/rulesActions.js')
-rw-r--r--client/components/rules/rulesActions.js37
1 files changed, 19 insertions, 18 deletions
diff --git a/client/components/rules/rulesActions.js b/client/components/rules/rulesActions.js
index bf8d222d..d492cbd5 100644
--- a/client/components/rules/rulesActions.js
+++ b/client/components/rules/rulesActions.js
@@ -3,29 +3,28 @@ BlazeComponent.extendComponent({
this.currentActions = new ReactiveVar("board");
},
-
- setBoardActions(){
+ setBoardActions() {
this.currentActions.set("board");
$('.js-set-card-actions').removeClass('active');
$('.js-set-board-actions').addClass('active');
$('.js-set-checklist-actions').removeClass('active');
$('.js-set-mail-actions').removeClass('active');
},
- setCardActions(){
+ setCardActions() {
this.currentActions.set("card");
$('.js-set-card-actions').addClass('active');
$('.js-set-board-actions').removeClass('active');
$('.js-set-checklist-actions').removeClass('active');
$('.js-set-mail-actions').removeClass('active');
},
- setChecklistActions(){
+ setChecklistActions() {
this.currentActions.set("checklist");
$('.js-set-card-actions').removeClass('active');
$('.js-set-board-actions').removeClass('active');
$('.js-set-checklist-actions').addClass('active');
$('.js-set-mail-actions').removeClass('active');
},
- setMailActions(){
+ setMailActions() {
this.currentActions.set("mail");
$('.js-set-card-actions').removeClass('active');
$('.js-set-board-actions').removeClass('active');
@@ -37,21 +36,23 @@ BlazeComponent.extendComponent({
return Rules.find({});
},
- name(){
+ name() {
console.log(this.data());
},
events() {
- return [{'click .js-set-board-actions'(event) {
- this.setBoardActions();
- },
- 'click .js-set-card-actions'(event) {
- this.setCardActions();
- },
- 'click .js-set-mail-actions'(event) {
- this.setMailActions();
- },
- 'click .js-set-checklist-actions'(event) {
- this.setChecklistActions();
- },}];
+ return [{
+ 'click .js-set-board-actions' (event) {
+ this.setBoardActions();
+ },
+ 'click .js-set-card-actions' (event) {
+ this.setCardActions();
+ },
+ 'click .js-set-mail-actions' (event) {
+ this.setMailActions();
+ },
+ 'click .js-set-checklist-actions' (event) {
+ this.setChecklistActions();
+ },
+ }];
},
}).register('rulesActions'); \ No newline at end of file