Changeset 3688 in subversion
- Timestamp:
- May 30, 2010 3:48:15 AM (3 years ago)
- Location:
- trunk/roundcubemail
- Files:
-
- 4 edited
-
program/js/app.js (modified) (7 diffs)
-
program/steps/mail/func.inc (modified) (5 diffs)
-
skins/default/functions.js (modified) (2 diffs)
-
skins/default/mail.css (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/js/app.js
r3687 r3688 167 167 this.message_list = new rcube_list_widget(this.gui_objects.messagelist, { 168 168 multiselect:true, multiexpand:true, draggable:true, keyboard:true, 169 column_movable:this.env.col_movable, column_fixed:0,dblclick_time:this.dblclick_time169 column_movable:this.env.col_movable, dblclick_time:this.dblclick_time 170 170 }); 171 171 this.message_list.row_init = function(o){ p.init_message_row(o); }; … … 1646 1646 tree += icon ? '<img id="msgicn'+uid+'" src="'+icon+'" alt="" class="msgicon" />' : ''; 1647 1647 1648 // first col is always there1649 col.className = 'threads';1650 col.innerHTML = expando;1651 row.appendChild(col);1652 1653 1648 // build subject link 1654 1649 if (!bw.ie && cols.subject) { … … 1672 1667 html = '<img id="flaggedicn'+uid+'" src="'+this.env.unflaggedicon+'" class="flagicon" alt="" />'; 1673 1668 } 1669 else if (c == 'threads') 1670 html = expando; 1674 1671 else if (c == 'attachment') 1675 1672 html = flags.attachment && this.env.attachmenticon ? '<img src="'+this.env.attachmenticon+'" alt="" />' : ' '; … … 1734 1731 delete cols[idx]; 1735 1732 } 1733 else if (name == 'threads') { 1734 delete oldcols[i]; 1735 } 1736 1736 } 1737 1737 for (i=0; i<cols.length; i++) … … 1739 1739 newcols[newcols.length] = cols[i]; 1740 1740 1741 if (newcols.join() != this.env.coltypes.join()) {1741 if (newcols.join() != oldcols.join()) { 1742 1742 update = 1; 1743 1743 add_url += '&_cols=' + newcols.join(','); … … 4590 4590 for (n=0; thead && n<this.env.coltypes.length; n++) { 4591 4591 col = this.env.coltypes[n]; 4592 if ((cell = thead.rows[0].cells[n +1]) && (col=='from' || col=='to')) {4592 if ((cell = thead.rows[0].cells[n]) && (col=='from' || col=='to')) { 4593 4593 // if we have links for sorting, it's a bit more complicated... 4594 4594 if (cell.firstChild && cell.firstChild.tagName.toLowerCase()=='a') { … … 4615 4615 this.set_env('subject_col', found); 4616 4616 if (this.message_list) 4617 this.message_list.subject_col = found +1;4617 this.message_list.subject_col = found; 4618 4618 } 4619 4619 if ((found = $.inArray('flag', this.env.coltypes)) >= 0) -
trunk/roundcubemail/program/steps/mail/func.inc
r3686 r3688 171 171 && (($f = array_search('from', $a_show_cols)) !== false) && array_search('to', $a_show_cols) === false) 172 172 $a_show_cols[$f] = 'to'; 173 174 // make sure 'threads' column is present 175 if (!in_array('threads', $a_show_cols)) 176 array_unshift($a_show_cols, 'threads'); 173 177 174 178 $skin_path = $_SESSION['skin_path'] = $CONFIG['skin_path']; … … 239 243 $a_show_cols[$f] = 'to'; 240 244 245 // make sure 'threads' column is present 246 if (!in_array('threads', $a_show_cols)) 247 array_unshift($a_show_cols, 'threads'); 248 241 249 $thead = $head_replace ? rcmail_message_list_head($_SESSION['list_attrib'], $a_show_cols) : NULL; 242 250 … … 246 254 return; 247 255 248 // remove ' attachment' and'flag' columns, we don't need them here249 if (($key = array_search('attachment', $a_show_cols)) !== FALSE)256 // remove 'threads', 'attachment', 'flag' columns, we don't need them here 257 if (($key = array_search('attachment', $a_show_cols)) !== FALSE) 250 258 unset($a_show_cols[$key]); 251 if(($key = array_search('flag', $a_show_cols)) !== FALSE) 259 if (($key = array_search('flag', $a_show_cols)) !== FALSE) 260 unset($a_show_cols[$key]); 261 if (($key = array_search('threads', $a_show_cols)) !== FALSE) 252 262 unset($a_show_cols[$key]); 253 263 … … 346 356 $list_menu = ''; 347 357 348 $cells = array( array('className' => 'threads', 'html' => $list_menu));358 $cells = array(); 349 359 350 360 foreach ($a_show_cols as $col) { … … 356 366 case 'attachment': 357 367 $col_name = sprintf($image_tag, $skin_path, $attrib['attachmenticon'], ''); 368 break; 369 case 'threads': 370 $col_name = $list_menu; 358 371 break; 359 372 default: -
trunk/roundcubemail/skins/default/functions.js
r3526 r3688 149 149 if (typeof show == 'undefined') 150 150 show = obj.is(':visible') ? false : true; 151 151 152 152 var ref = rcube_find_object(refname); 153 153 if (show && ref) { … … 215 215 var ref = rcube_find_object('listmenulink'); 216 216 if (show && ref) { 217 var pos = $(ref).offset(); 217 var pos = $(ref).offset(), 218 menuwidth = this.listmenu.width(), 219 pagewidth = $(document).width(); 220 221 if (pagewidth - pos.left < menuwidth && pos.left > menuwidth) 222 pos.left = pos.left - menuwidth; 223 218 224 this.listmenu.css({ left:pos.left, top:(pos.top + ref.offsetHeight + 2)}); 219 225 // set form values -
trunk/roundcubemail/skins/default/mail.css
r3637 r3688 744 744 #messagelist tr td.flag 745 745 { 746 width: 20px;747 padding: 0px 1px 1px 1px;746 width: 18px; 747 padding: 0px 1px 1px 3px; 748 748 } 749 749 … … 757 757 #messagelist tbody td img.msgicon 758 758 { 759 margin -right:2px;759 margin: 0 2px; 760 760 } 761 761 … … 771 771 #messagelist tr td div.collapsed 772 772 { 773 background: url(images/messageactions.png) 1px -91px no-repeat;773 background: url(images/messageactions.png) -1px -91px no-repeat; 774 774 } 775 775 776 776 #messagelist tr td div.expanded 777 777 { 778 background: url(images/messageactions.png) 1px -109px no-repeat;778 background: url(images/messageactions.png) -1px -109px no-repeat; 779 779 } 780 780
Note: See TracChangeset
for help on using the changeset viewer.
