summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2015-05-25 14:37:21 +0200
committerMaxime Quandalle <maxime@quandalle.com>2015-05-25 14:37:21 +0200
commitfc2435b042babd8a9b0f946a9cc5696b98cc837c (patch)
tree95b676c2a2143aeb20c736cd2eddb79494101c00
parent9a45f3752fe7c8499960b4fb6d185f9f5f8afbda (diff)
downloadwekan-fc2435b042babd8a9b0f946a9cc5696b98cc837c.tar.gz
wekan-fc2435b042babd8a9b0f946a9cc5696b98cc837c.tar.bz2
wekan-fc2435b042babd8a9b0f946a9cc5696b98cc837c.zip
Fix detailed card pane animation
-rw-r--r--client/components/boards/body.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/client/components/boards/body.js b/client/components/boards/body.js
index e4aad646..612097e4 100644
--- a/client/components/boards/body.js
+++ b/client/components/boards/body.js
@@ -55,17 +55,15 @@ BlazeComponent.extendComponent({
// transition for the actual animation.
lists._uihooks = {
removeElement: function(node) {
- var removeNode = function() {
+ var removeNode = _.once(function() {
node.parentNode.removeChild(node);
- };
+ });
if ($(node).hasClass('js-card-detail')) {
$(node).css({
- flex: '0',
+ flex: '0 0 0',
padding: 0
});
- $(lists).one(endTransitionEvents, function() {
- removeNode();
- });
+ $(lists).one(endTransitionEvents, removeNode);
} else {
removeNode();
}