summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2015-06-07 12:01:48 +0200
committerMaxime Quandalle <maxime@quandalle.com>2015-06-07 12:01:48 +0200
commit915a7e5c6865548ee3664ec67f328f815480a761 (patch)
treedfb13f82298d3cd8db6a9f4a29fd90588808620f
parent92dd05d06ddeb2a9434df6038c432e6b167c1c99 (diff)
downloadwekan-915a7e5c6865548ee3664ec67f328f815480a761.tar.gz
wekan-915a7e5c6865548ee3664ec67f328f815480a761.tar.bz2
wekan-915a7e5c6865548ee3664ec67f328f815480a761.zip
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.
-rw-r--r--client/components/cards/templates.html4
-rw-r--r--client/components/modal/events.js14
-rw-r--r--client/components/modal/helpers.js0
-rw-r--r--client/components/modal/modal.tpl.jade5
-rw-r--r--i18n/en.i18n.json1
5 files changed, 0 insertions, 24 deletions
diff --git a/client/components/cards/templates.html b/client/components/cards/templates.html
index 23f9ce4f..94d54b6b 100644
--- a/client/components/cards/templates.html
+++ b/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">
diff --git a/client/components/modal/events.js b/client/components/modal/events.js
deleted file mode 100644
index 2943f841..00000000
--- a/client/components/modal/events.js
+++ /dev/null
@@ -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();
- }
-});
diff --git a/client/components/modal/helpers.js b/client/components/modal/helpers.js
deleted file mode 100644
index e69de29b..00000000
--- a/client/components/modal/helpers.js
+++ /dev/null
diff --git a/client/components/modal/modal.tpl.jade b/client/components/modal/modal.tpl.jade
deleted file mode 100644
index 2f40ad75..00000000
--- a/client/components/modal/modal.tpl.jade
+++ /dev/null
@@ -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)
diff --git a/i18n/en.i18n.json b/i18n/en.i18n.json
index bf7293dd..bdefaa0f 100644
--- a/i18n/en.i18n.json
+++ b/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",