events.js 472 B

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