Roundcube Community Forum

Release Support => Release Discussion => Topic started by: unicorn on January 18, 2011, 08:22:38 AM

Title: Sort foreign column
Post by: unicorn on January 18, 2011, 08:22:38 AM
Hi everybody,

I added column by this way to the message list:

$list_cols = $this->_rcmail->config->get('list_cols');
if (!in_array('resolver', $list_cols)) {
   array_unshift($list_cols, 'resolver');
   $this->_rcmail->config->set('list_cols', $list_cols);         
}

Is there any possibility to sort this new column by roundcube?

Thank you for your hints.
Title: Sort foreign column
Post by: umount on January 18, 2011, 08:33:53 AM
Quote from: unicorn;32542Hi everybody,

I added column by this way to the message list:

$list_cols = $this->_rcmail->config->get('list_cols');
if (!in_array('resolver', $list_cols)) {
   array_unshift($list_cols, 'resolver');
   $this->_rcmail->config->set('list_cols', $list_cols);         
}

Is there any possibility to sort this new column by roundcube?

Thank you for your hints.

I use next construction for my plugin arrival

$(document).ready(function(){
  var link_sort = ''+rcmail.get_label('arrival')+'';
  $("#rcmarrival").html(link_sort);
});
Title: Sort foreign column
Post by: unicorn on January 18, 2011, 09:02:56 AM
umount, it's excelent hint, thank you very much.
Title: Sort foreign column
Post by: unicorn on January 18, 2011, 09:16:03 AM
umount, one morec question. Do you anything else after this replace? When I click on added column it seems, that sorted message list isn't correct.