summaryrefslogtreecommitdiffstats
path: root/client/components/modal/events.js
blob: 2943f841c25c8fd784d936f90da884c4faf7bc1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Template.modal.events({
  'click .window-overlay': function(event) {
    // We only want to catch the event if the user click on the .window-overlay
    // div itself, not a child (ie, not the overlay window)
    if (event.target !== event.currentTarget)
      return;
    Utils.goBoardId(this.card.board()._id);
    event.preventDefault();
  },
  'click .js-close-window': function(event) {
    Utils.goBoardId(this.card.board()._id);
    event.preventDefault();
  }
});