Changeset 5343 in subversion
- Timestamp:
- Oct 18, 2011 9:45:38 AM (20 months ago)
- File:
-
- 1 edited
-
trunk/roundcubemail/program/js/app.js (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/js/app.js
r5342 r5343 1679 1679 }); 1680 1680 1681 var c, html, tree =expando = '',1681 var c, n, col, html, tree = '', expando = '', 1682 1682 list = this.message_list, 1683 1683 rows = list.rows, 1684 tbody = this.gui_objects.messagelist.tBodies[0],1685 rowcount = tbody.rows.length,1686 even = rowcount%2,1687 1684 message = this.env.messages[uid], 1688 1685 css_class = 'message' … … 1693 1690 + (message.selected ? ' selected' : ''), 1694 1691 // for performance use DOM instead of jQuery here 1695 row = document.createElement('tr'), 1696 col = document.createElement('td'); 1692 row = document.createElement('tr'); 1697 1693 1698 1694 row.id = 'rcmrow'+uid; … … 1721 1717 // threads 1722 1718 if (this.env.threading) { 1723 // This assumes that div width is hardcoded to 15px,1724 var width = message.depth * 15;1725 1719 if (message.depth) { 1720 // This assumes that div width is hardcoded to 15px, 1721 tree += '<span id="rcmtab' + uid + '" class="branch" style="width:' + (message.depth * 15) + 'px;"> </span>'; 1722 1726 1723 if ((rows[message.parent_uid] && rows[message.parent_uid].expanded === false) 1727 1724 || ((this.env.autoexpand_threads == 0 || this.env.autoexpand_threads == 2) && … … 1738 1735 message.expanded = true; 1739 1736 } 1740 } 1741 1742 if (width) 1743 tree += '<span id="rcmtab' + uid + '" class="branch" style="width:' + width + 'px;"> </span>'; 1744 1745 if (message.has_children && !message.depth) 1737 1746 1738 expando = '<div id="rcmexpando' + uid + '" class="' + (message.expanded ? 'expanded' : 'collapsed') + '"> </div>'; 1739 } 1747 1740 } 1748 1741 … … 1758 1751 1759 1752 // add each submitted col 1760 for ( varn in this.env.coltypes) {1753 for (n in this.env.coltypes) { 1761 1754 c = this.env.coltypes[n]; 1762 1755 col = document.createElement('td'); … … 4116 4109 this.add_contact_row = function(cid, cols, select) 4117 4110 { 4118 if (!this.gui_objects.contactslist || !this.gui_objects.contactslist.tBodies[0])4111 if (!this.gui_objects.contactslist) 4119 4112 return false; 4120 4113 4121 var c, tbody = this.gui_objects.contactslist.tBodies[0],4114 var c, list = this.contact_list, 4122 4115 row = document.createElement('tr'); 4123 4116 … … 4125 4118 row.className = 'contact'; 4126 4119 4127 if ( this.contact_list.in_selection(cid))4120 if (list.in_selection(cid)) 4128 4121 row.className += ' selected'; 4129 4122 … … 4136 4129 } 4137 4130 4138 this.contact_list.insert_row(row);4139 4140 this.enable_command('export', (this.contact_list.rowcount > 0));4131 list.insert_row(row); 4132 4133 this.enable_command('export', list.rowcount > 0); 4141 4134 }; 4142 4135
Note: See TracChangeset
for help on using the changeset viewer.
