Commit 7f2b2920 by Dányi Bence

one: file remove animation added

parent 878fdd71
......@@ -308,6 +308,17 @@ $(function() {
$(e).hide().slideDown(500);
}
self.fadeOutFile = function(e) {
try {
$(e).slideUp(500, function() {
console.log('sssaa', e);
e.parentNode.removeChild(e);
});
} catch(ex) {
e.parentNode.removeChild(e);
}
}
/**
* Downloads the specified file (or folder zipped)
*/
......
......@@ -35,7 +35,7 @@
<div class="clear"></div>
</div>
</li>
<!-- ko foreach: {data:files,afterAdd:fadeIn} -->
<!-- ko foreach: {data:files,afterAdd:fadeIn,beforeRemove:fadeOutFile} -->
<li class="wm real">
<div class="summary" data-bind="click: clickHandler">
<div class="name" data-bind="text: name, attr: {class: getTypeClass}"></div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment