diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-01-26 23:33:55 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-01-26 23:33:55 +0100 |
commit | 0541a50bae77fca45c9b6d633b39595b4d933103 (patch) | |
tree | 61ec45609ef6168b7c69fc39a66916acc9fa466b /module/web/static/js/views | |
parent | fix ssl deactivation for server selector (diff) | |
download | pyload-0541a50bae77fca45c9b6d633b39595b4d933103.tar.xz |
little fixes, added pyload logo as svg
Diffstat (limited to 'module/web/static/js/views')
-rw-r--r-- | module/web/static/js/views/packageView.js | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/module/web/static/js/views/packageView.js b/module/web/static/js/views/packageView.js index 5d8aa7738..2c1541c7f 100644 --- a/module/web/static/js/views/packageView.js +++ b/module/web/static/js/views/packageView.js @@ -53,22 +53,8 @@ define(['jquery', 'views/abstract/itemView', 'underscore', 'views/fileView'], ul.append(new fileView({model: file}).render().el); }); - // TODO: additionally it could be placed out of viewport first - // The real height can only be retrieved when element is on DOM and display:true - ul.css('visibility', 'hidden'); - this.$el.append(ul); - - var height = ul.height(); - // Hide the element when not expanded - if (!this.expanded) { - ul.hide(); - ul.height(0); - } - - ul.css('visibility', ''); - ul.data('height', height); - console.log(ul.data("height")); + this.$el.appendWithHeight(ul, !this.expanded); this.ul = ul; } |