Bladeren bron

Remove modal component

This component wasn't used anymore. We'll probably need something like
that again in the future, but we'll try to use a generic component
from Atmosphere.
Maxime Quandalle 10 jaren geleden
bovenliggende
commit
915a7e5c68

+ 0 - 4
client/components/cards/templates.html

@@ -1,7 +1,3 @@
-<template name="cardModal">
-    {{ > modal template='cardDetailWindow' card=this board=this.board }}
-</template>
-
 <template name="cardMemberPopup">
     <div class="board-member-menu">
         <div class="mini-profile-info">

+ 0 - 14
client/components/modal/events.js

@@ -1,14 +0,0 @@
-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();
-  }
-});

+ 0 - 0
client/components/modal/helpers.js


+ 0 - 5
client/components/modal/modal.tpl.jade

@@ -1,5 +0,0 @@
-.window-overlay.show
-  .window
-    .window-wrapper.clearfix
-      a.icon-lg.fa.fa-times.dialog-close-button.js-close-window(title="{{_ 'modal-close-title'}}")
-      +UI.dynamic(template=template)

+ 0 - 1
i18n/en.i18n.json

@@ -107,7 +107,6 @@
     "members": "Members",
     "members-title": "Add or remove members of the board from the card.",
     "menu": "Menu",
-    "modal-close-title": "Close this dialog window.",
     "multi-selection": "Multi-Selection",
     "my-boards": "My Boards",
     "name": "Name",