Using the instructions on http://drupal.org/comment/reply/283502 I created a Page View.
I'm getting a Javascript error on the view page, on page load, that's preventing the dragging functionality:

cell[0] is undefined
/misc/tabledrag.js?y
Line 128
 if (cell[0].colSpan > 1) {

Using Drupal 6.4
Ideas?

Comments

spl13’s picture

Assigned: Unassigned » spl13
Status: Active » Closed (fixed)

Premature bug.
I had "Exclude from display" the weight/order field, which is wrong.
When I unchecked it, the cross-hairs on the drag page didn't show up, but there was no error.
When I moved this field to the end, not the 1st field on the list, everything works great!
Thank you.

sevi’s picture

Although thanks for reporting.
I'll put that in strong letters on the documentation page :)

sevi

hgouveia’s picture

i had the same problem in misc/tabledrag.js , "cell[0] is undefined" on the line 133 , so i went to that line and changed it

//before
if (cell[0].colSpan > 1) {
//after
if (typeof cell  == "undefined" && cell[0].colSpan > 1) {

and it worked for me

Funksmaname’s picture

#3 worked for me - THANKS!
(slightly different for latest version?)

line 149 of misc/tabledrag.js

before:
if (cell[0].colSpan && cell[0].colSpan > 1) {

after:
if (typeof cell == "undefined" && cell[0].colSpan && cell[0].colSpan > 1) {

Funksmaname’s picture

Version: 6.x-1.0-beta1 » 7.x-2.x-dev