Re: drag/drop after sort




On Dec 31, 2004, at 8:57 PM, Dan Espen wrote:

muppet <scott asofyet org> writes:
Can you post some code so that i can play with something resembling
what you have?

Here is a context diff for examples/simplelist.pl that makes
the first 2 columns sortable if you check the sortable box:

<simplelist.diff>
If you check both reorderable and sortable then click one
of the first 2 columns, you'll see the problem.

indeed.

there ought to be a way to get the list out of sorted mode, but given what you've described, wanting to use the sort as a starting point for further reordering, that seems like the wrong way to go... so i hacked up something like what i described in the last message: clicking a column header simply reorders the data in the simplelist itself, bypassing all of the TreeSortable stuff. patch against clean simplelist.pl attached. i tried to comment heavily, but i'm a little hung over from the new year, so let me know if it's not clear. ;-)

Attachment: simplelist.pl
Description: Binary data



--
Without treatment, a common cold will last about seven days.
With treatment, it will last about a week.
  -- conventional wisdom


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]