Author Topic: Sort foreign column  (Read 3032 times)

Offline unicorn

  • Jr. Member
  • **
  • Posts: 15
Sort foreign column
« 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.

Offline umount

  • Full Member
  • ***
  • Posts: 63
Sort foreign column
« Reply #1 on: January 18, 2011, 08:33:53 AM »
Quote from: unicorn;32542
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.


I use next construction for my plugin arrival

$(document).ready(function(){
  var link_sort = ''+rcmail.get_label('arrival')+'';
  $("#rcmarrival").html(link_sort);
});

Offline unicorn

  • Jr. Member
  • **
  • Posts: 15
Sort foreign column
« Reply #2 on: January 18, 2011, 09:02:56 AM »
umount, it's excelent hint, thank you very much.

Offline unicorn

  • Jr. Member
  • **
  • Posts: 15
Sort foreign column
« Reply #3 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.