diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-05-26 18:09:37 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-05-26 18:09:37 +0000 |
| commit | 3db12cec92448576b06731c5dd69adfdd6ec4e24 (patch) | |
| tree | 70e5fee2d7194f25a89c0d2d0e4c4cfee8aa6d0f /roundcubemail/program | |
| parent | b9df2db5a3e43e4f4eaac0ecd3275667a1c89a1e (diff) | |
- jquery's hide/show functions are slow, don't use it in loops
git-svn-id: https://svn.roundcube.net/trunk@3673 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/js/list.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/roundcubemail/program/js/list.js b/roundcubemail/program/js/list.js index c94453c74..d7e00f1e3 100644 --- a/roundcubemail/program/js/list.js +++ b/roundcubemail/program/js/list.js @@ -393,7 +393,7 @@ collapse: function(row) var r = this.rows[new_row.uid]; if (r && r.depth <= depth) break; - $(new_row).hide(); + $(new_row).css('display', 'none'); if (r.expanded) { r.expanded = false; this.triggerEvent('expandcollapse', { uid:r.uid, expanded:r.expanded }); @@ -436,7 +436,7 @@ expand: function(row) if (p && p.expanded) { if ((row && p == row) || last_expanded_parent_depth >= p.depth - 1) { last_expanded_parent_depth = p.depth; - $(new_row).show(); + $(new_row).css('display', ''); r.expanded = true; this.triggerEvent('expandcollapse', { uid:r.uid, expanded:r.expanded }); } @@ -481,7 +481,7 @@ collapse_all: function(row) break; if (row || r.depth) - $(new_row).hide(); + $(new_row).css('display', 'none'); if (r.has_children && r.expanded) { r.expanded = false; this.update_expando(r.uid, false); @@ -517,7 +517,7 @@ expand_all: function(row) if (row && r.depth <= depth) break; - $(new_row).show(); + $(new_row).css('display', ''); if (r.has_children && !r.expanded) { r.expanded = true; this.update_expando(r.uid, true); |
