[imp] Resetting sort order
Michael Cochrane
mike@graftonhall.co.nz
Sun, 18 Nov 2001 10:28:23 +0000
One very simple method would be to place the arrayIndex +1 in a column. This
number will be the same as the message x of y in the message view.. but then
value will not stay with the message when the order is changed. diff is below if
anyone want's to have a look at it.
Also any particular reason why the coloum width percentages are different in
message_headers and message_summaries?
Mike
Index: horde/imp/templates/mailbox/message_headers.inc
===================================================================
RCS file: /repository/imp/templates/mailbox/message_headers.inc,v
retrieving revision 2.36
diff -r2.36 message_headers.inc
5a6
> <td nowrap="nowrap" width="2%"> </td>
7c8
< <th class="<?= ($prefs->getValue('sortby') == SORTDATE) ? 'selected' :
'item' ?>" width="12%" align="left" nowrap="nowrap">
---
> <th class="<?= ($prefs->getValue('sortby') == SORTDATE) ? 'selected' :
'item' ?>" width="10%" align="left" nowrap="nowrap">
Index: horde/imp/templates/mailbox/message_summaries.inc
===================================================================
RCS file: /repository/imp/templates/mailbox/message_summaries.inc,v
retrieving revision 2.38
diff -r2.38 message_summaries.inc
1a2
> <td width="2%" nowrap="nowrap" onclick="<?= $onclick ?>;"><?=
$message['arrayIndex']+1 ?></td>
6c7
< <td width="11%" nowrap="nowrap" onclick="<?= $onclick ?>;"><?= $styledat;
?></td>
---
> <td width="9%" nowrap="nowrap" onclick="<?= $onclick ?>;"><?= $styledat;
?></td>
Quoting Chuck Hagenbuch <chuck@horde.org>:
> Quoting Jeff Tucker <jefft@wciatl.com>:
>
> > Since you don't provide a threaded view, I'm guessing that most work gets
>
> > done in the default numerical sort anyway. There really needs to be a way
>
> > to get back to that if you click anything else.
>
> I'm not arguing with you; I'm asking for someone to come up with a good way
> of
> doing it.
>
> -chuck
>
> --
> Charles Hagenbuch, <chuck@horde.org>
> "What was and what may be, lie, like children whose faces we cannot see, in
> the
> arms of silence. All we ever have is here, now." - Ursula K. Le Guin
>
> --
> IMP mailing list: http://horde.org/imp/
> Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe@lists.horde.org
>
>