I've got a working 'sorting' tabledrag example and a 95% complete 'parent/child' tabledrag example set up in a sandbox at http://drupal.org/sandbox/jthorson/1440578 (under tag 7.x-1.0). The parent/child example does not display the parent/child relationships when the table first loads, but the dragging/saving functionality is working and complete. (If someone could point me in the right direction to get the parent/child relationships to display on first load, it would be greatly appreciated.

Both of the above could use tests ... but I'm not sure how to test that a client-side javascript functionality is working properly?

I've also began building out a 'group' sorting example and the filenames for a combined 'group+parent/child+sorting' example in the 7.x-1.x branch, but these are currently just copies of the code from the 'simple' case, and not really close to working. If anyone wanted to update them, that would be a big help as well.

CommentFileSizeAuthor
#2 tabledrag_example.module.patch27.76 KBjthorson

Comments

rfay’s picture

I don't think there's any way to do simpletest tests for tabledrag.

jthorson’s picture

StatusFileSize
new27.76 KB

Patch contains the completed 'simple' and 'parent/child' examples.

jthorson’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, tabledrag_example.module.patch, failed testing.

jthorson’s picture

Status: Needs work » Needs review

Hey there, Mr. System Message. I don't believe you. Re-queuing test.

jthorson’s picture

#2: tabledrag_example.module.patch queued for re-testing.

sahil_babu’s picture

#2: tabledrag_example.module.patch queued for re-testing.

rfay’s picture

Status: Needs review » Fixed

Committed with minor changes, http://drupalcode.org/project/examples.git/commitdiff/288467d

Thanks so much!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.