mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Fix detailed card pane animation
This commit is contained in:
parent
9a45f3752f
commit
fc2435b042
1 changed files with 4 additions and 6 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue