Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
spl13 CreditAttribution: spl13 commentedPremature 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.
Comment #2
sevi CreditAttribution: sevi commentedAlthough thanks for reporting.
I'll put that in strong letters on the documentation page :)
sevi
Comment #3
hgouveia CreditAttribution: hgouveia commentedi 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
and it worked for me
Comment #4
Funksmaname CreditAttribution: Funksmaname commented#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) {
Comment #5
Funksmaname CreditAttribution: Funksmaname commented