Closed (fixed)
Project:
DraggableViews
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
26 Aug 2008 at 14:23 UTC
Updated:
19 Aug 2013 at 22:53 UTC
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 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 commentedAlthough thanks for reporting.
I'll put that in strong letters on the documentation page :)
sevi
Comment #3
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 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 commented